Good evening, hope someone can help.
I am trying to create lambda functions that work in various tables in a workbook.
The worksheet calculates "Year To Date" (a running total) and "Previous Year to Date" (YTD from the previous row)
The functions are kind of long (especially the Previous function) and used in many columns in the tables.
These functions work fine, I'd just like to have them as LAMBDA functions stored as names
Failing that, is there a simpler formula for "previous"? (Avoiding volatile functions)
I can't figure out the syntax, and searching online, I haven't found an answer or even syntax guide. Maybe LAMBDA function needs to 'know' the table name and not just column names?
I have a workbook with about 70 sheets and an identical table on each sheet, just different data. (sales production, one sheet per salesperson). I don't want a separate LAMDA function for each table.
Thank you in advance for any guidance!!!
I am trying to create lambda functions that work in various tables in a workbook.
The worksheet calculates "Year To Date" (a running total) and "Previous Year to Date" (YTD from the previous row)
The functions are kind of long (especially the Previous function) and used in many columns in the tables.
These functions work fine, I'd just like to have them as LAMBDA functions stored as names
Failing that, is there a simpler formula for "previous"? (Avoiding volatile functions)
I can't figure out the syntax, and searching online, I haven't found an answer or even syntax guide. Maybe LAMBDA function needs to 'know' the table name and not just column names?
I have a workbook with about 70 sheets and an identical table on each sheet, just different data. (sales production, one sheet per salesperson). I don't want a separate LAMDA function for each table.
Thank you in advance for any guidance!!!
running total.xlsx | |||||
---|---|---|---|---|---|
A | B | C | |||
1 | Sales | Sales_YTD | Sales_Prev_YTD | ||
2 | $ 3,000.00 | $ 3,000.00 | $ - | ||
3 | $ 5,812.50 | $ 8,812.50 | $ 3,000.00 | ||
4 | $ 89.06 | $ 8,901.56 | $ 8,812.50 | ||
5 | $ 1,181.25 | $ 10,082.81 | $ 8,901.56 | ||
6 | $ 15,500.00 | $ 25,582.81 | $ 10,082.81 | ||
7 | $ 4,375.00 | $ 29,957.81 | $ 25,582.81 | ||
8 | $ 45.00 | $ 30,002.81 | $ 29,957.81 | ||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B8 | B2 | =SUM(INDEX([Sales],1):[@Sales]) |
C2:C8 | C2 | =IF(ROW()>ROW(Production[#Headers])+1,INDEX([Sales_YTD],ROW()-ROW(Production[#Headers])-1),0) |