Simply put: value is the amount of abstract labour time the production of the given commodity needed from society's division of labour.
Longer explanation:
We start with use-value. A thing has use-value to someone when it satisfies some need of that person. Why the need is present and what kind of need it is is not important. Use-value is a relation between a person and a particular thing. It is based on the concrete properties of that particular thing. We call it a qualitative relation, because it cannot be measured, compared, it's based on quality. For our purposes you can think of it as a true or false question, is it useful to me or not, anything beyond that is a concern of psychology, not economics.
When a thing that has use-value to someone is being exchanged, it becomes a commodity. Exchange here is not a farmer at the market choosing the best looking apple at the groceries and giving a pint of beer for it, but capitalists exchanging megalitres of beer for tons of apples. Now we have an equation of X megalitres of beer = Y tons of apple. We say that X megalitres of beer has equal exchange-value as X tons of apple. Exchange-value is a relation between quantities of commodities. It is a quantitative relation. We also know that this exchange-value changes with time and place.
Now we can write that X units of commodity A = Y units of commodity B = Z units of commodity C = … and so on. This means that there is something common to all these that enables us to compare them. This common thing is what Marx calls value. Since it is only appears in exchange-value, we can consider the two to be the same thing. But what is this value? Where does it come from? We started with use-value, and many people claim that it comes from use-value. However, as we have seen, use-value is connected to the concrete properties of a particular thing. It is qualitative. But what we have here is quantitative! We no longer have particular things, just an abstract mass of commodities, so it cannot be from use-value, which is concrete.
The only other property that all commodities have in common is that they are all products of labour. So Marx said that value must come from labour. However, since we are still in abstract, it can come only from abstract properties of labour. So labour loses its particular form and is reduced only to quantity: labour time. However, it still cannot be the concrete labour time spent on a particular commodity, because that's still too concrete. So we have to use socially necessary labour time, which means the average time spent by the average worker using average tools producing the commodity at our present conditions.
A commodity gets exchanged because it has use-value to someone. A commodity gets produced to be exchanged for another commodity that has use-value to the producer. If we follow all of these connections, from the producers' side value is the amount of abstract labour time they've contributed to society's division of labour, while for the consumer it is the abstract labour time the commodity costed from society's division of labour.