SOLVED

Formula for administration purposses

Copper Contributor

Hi, I have in an excel the income of each month from an organization, so I want to make a formula in which I only write the month as a name in a cell bar, and automatically the formula select from the first month(In this case July) until the month i write in the cell bar(The last one is June).

 

Example: I want to write in the cell bar February so the formula will give me the sum of the income from July(First one) to February (The one i write in the formula). 

 

I hope someone can understand and help me. I wanted to share a picture of the data but it is classified.

Thankss!!

4 Replies

@Sergio_Garza 

Better if you share small sample file to illustrate how your data is structured replacing sensitive information with dummy one.

best response confirmed by Sergio_Garza (Copper Contributor)
Solution

@Sergio_Garza 

@Sergei Baklan 

Submitted for your appraisal (I know you don't always approve of the way I work!)

 

image.png

Since the formula returns a reference to a section of the table, I am able to intersect the extract with columns of the table so that the total income for the year to date could be evaluated using range intersection, giving

= SUM(income yearToDate)

 

Thanks, I am a little confused about what to do with that formula but i will make it.

@Sergio_Garza 

As it stands, the formula requires Excel 365 and it is hidden away within the defined name 'yearToDate'. The formula is about as far from standard spreadsheet practice as you can get without turning to PowerQuery or VBA.

 

The key to using the formula is to recognise that the defined name refers to a (varying) region of the data, returning it as a range reference. If you do not have LET, it is possible to pick out the formula scoped names and given them workbook or sheet scope in Name Manager. The main problem then would be using LOOKUP rather than XLOOKUP.

1 best response

Accepted Solutions
best response confirmed by Sergio_Garza (Copper Contributor)
Solution

@Sergio_Garza 

@Sergei Baklan 

Submitted for your appraisal (I know you don't always approve of the way I work!)

 

image.png

Since the formula returns a reference to a section of the table, I am able to intersect the extract with columns of the table so that the total income for the year to date could be evaluated using range intersection, giving

= SUM(income yearToDate)

 

View solution in original post