Formula help INDEX and MATCH Please :)

BeckyLH88

New Member
Joined
Aug 8, 2022
Messages
23
Office Version
  1. 365
Platform
  1. Web
Hello all,

I have added a formula, which on the first input returns the right result.

But when I drag this down, it then returns the result of the cell before but the result of the right so therefore moves the look up onto the next month.

Here's my formula:

=SUMIF('[Budget FY2024.xlsx] Budget'!$C$3:$N$3,$E$3,INDEX('[Budget FY2024.xlsx] Budget'!$C$6:$N$133,0,MATCH($B7,'[Budget FY2024.xlsx] Budget'!$B$6:$B$133,0)))

C3 - N3 being the date range
E3 is the date to be looked up
C6 - N133 being the range of data
B7 is the text for example 'staff costs' to look up
B6 - B133 is the text range

So for example:

1st October staff cost is 10, the first field has 10 returned. Formula is then dragged down, the look up changes to office costs, but then it brings the November Staff cost into this figure.


Really appreciate the help. Thank you in advance
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
I've mapped out the data type and then below is the result I am seeing from my formula
 

Attachments

  • Screenshot 2023-11-10 214158.jpg
    Screenshot 2023-11-10 214158.jpg
    115.5 KB · Views: 9
Upvote 0
Can you copy and paste it so i can paste into excel. Saves me typing...
 
Upvote 0
GBP
01/04/2023​
01/05/2023​
01/06/2023​
01/07/2023​
01/08/2023​
01/09/2023​
01/10/2023​
01/11/2023​
01/12/2023​
01/01/2024​
01/02/2024​
01/03/2024​
BudgetBudgetBudgetBudgetBudgetBudgetBudgetBudgetBudgetBudgetBudgetBudget
Sales
Product 1
10​
10​
10​
10​
10​
10​
10​
20​
20​
20​
20​
20​
Product 2
1​
1​
1​
1​
1​
1​
1​
1​
1​
1​
1​
1​
Product 3
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​
2​

FX Exchange
Monthly Profit and lossReporting Date31/10/2023
01/10/2023
Translated into GBPMonthMonth
ActualBudget
Sales
4000​
Product 110
4004​
Product 220
Product 320
 
Upvote 0
Sorry it's not formatted the way I expected it to when I pasted it in!
 
Upvote 0
Based on what you have there and copy-pasting it into A1 you could do:

=SUMIF($B$5:$B$7,P17,INDEX($C$5:$N$7,,MATCH(S$13,$C$2:$N$2,0)))

or as you only have one entry per product

=VLOOKUP(P17,$B$5:$N$7,MATCH($S$13,$B$2:$N$2,0))
 
Upvote 0
Sorry unfortunately I do not understand :/

This is my current formula:
=SUMIF('[Budget FY2024.xlsx] Budget'!$C$3:$N$3,$E$3,INDEX('[Budget FY2024.xlsx] Budget'!$C$6:$N$133,0,MATCH($B7,'[Budget FY2024.xlsx] Budget'!$B$6:$B$133,0)))

C3 - N3 being the date range
E3 is the date to be looked up
C6 - N133 being the range of data
B7 is the text for example 'product 1' to look up
B6 - B133 is the text range i.e. product 1, 2 etc
 
Upvote 0
Im interested in your test data not the formula you have that doesnt work. How does what ive given work on the test data?
 
Upvote 0
It returns an N/A for both, but possibly because I am inputting into A1 but it's not linking to the right cells. I don't particularly understand your formula suggested - sorry!

I am a little rusty, it's been a while since I have used any advanced knowledge!
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top