roelandwatteeuw
Board Regular
- Joined
- Feb 20, 2015
- Messages
- 87
- Office Version
- 365
- Platform
- Windows
Hi all
Thanks for taking time to read my problem.
Let me first quickly introduce you to the data.
Data:
The black columns are given data:
This data is sorted:
The green and orange columns are calculated ones:
Used Formulas:
Problem:
These formulas work great... so where's the problem?
I want to use them as a spilled result.
The 'Key' and 'Aend' columns aren't a problem, but the 'Abegin' is.
I can't find a way to get the calculated result from the row above.
Probably need a LAMBDA or something...
My current formula for Abegin is:
Result with this formula is in column I:
So I need a formula that fills in the 'PREV DATE' value.
If needed, I can upload the file.
thx!
Grtz
Roeland
Thanks for taking time to read my problem.
Let me first quickly introduce you to the data.
Data:
The black columns are given data:
A - Number: Is an unique number per product
B - Begin: Start date from the product
C - End: End date from the product
This data is sorted:
First on column A - Number: Low to High
Next on column B - Begin: Low to High
The green and orange columns are calculated ones:
D - Abegin: Connects the periods if they directly follow each other AND have the same number
E - Key: Concatinates the 'Number' and 'Abegin'
F - Aend: Gives the maximum value from column C - End, when the key matches the key of the current row
Used Formulas:
D | E | F |
Abegin | Key | Aend |
Excel Formula:
|
Excel Formula:
|
Excel Formula:
|
If the the cell in column B, from the row above isn't a number, then give the begin date from the current row (this is to avoid an error on the first row) If the cel is a number, then look in row above to the end date.
| Putting 'Number' and 'Begin' together | Gives the max. value from 'End' if the key matches |
Problem:
These formulas work great... so where's the problem?
I want to use them as a spilled result.
The 'Key' and 'Aend' columns aren't a problem, but the 'Abegin' is.
I can't find a way to get the calculated result from the row above.
Probably need a LAMBDA or something...
My current formula for Abegin is:
Excel Formula:
| lst_Begin = all data from column B - Begin - without header (B2:B10) lst_Nr = all data from column A - Number - without header (A2:A10) lst_NrPrev = Number in the previous row (A1:A9) |
Result with this formula is in column I:
So I need a formula that fills in the 'PREV DATE' value.
If needed, I can upload the file.
thx!
Grtz
Roeland