M
mahoobley
I'll try to explain this dilemma in simple terms:
Code:
--------------------
|---A---|---B---|
|october|novembr|
| beer | beer |
| gin | beer |
| beer | |
| beer | gin |
| gin | |
| water | gin |
--------------------
Basically, say I want to have a total of what was drunk most recently -
so it will look in november, add up whats there, but if there is
nothing in that column it will look down october and use whatever value
is in that column,
Thus I should get the following results:
Beer = 3
Gin = 3
Code:
--------------------
|---A---|---B---|
|october|novembr|
| beer | beer |
| gin | beer |
| beer | |
| beer | gin |
| gin | |
| water | gin |
--------------------
Basically, say I want to have a total of what was drunk most recently -
so it will look in november, add up whats there, but if there is
nothing in that column it will look down october and use whatever value
is in that column,
Thus I should get the following results:
Beer = 3
Gin = 3