Best way to calculate INDEX/MATCH/SUMIFS??

BeckyLH88

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

General question, as I've been looking for different ways for a while and I've not come up with a solution yet!

I've pasted a copy of the data below as test data

So I want to look up the total if it's Nominal A and department 2 for example. I've tried sumifs but it doesn't seem to work as I'm using a horizontal and vertical data structure.

Whats the best formula to use?

Thanks,
Becky

Department
1​
2​
3​
4​
5​
6​
7​
Nominal Code
A
30​
10​
200​
B
9​
555​
C
2​
D
5​
E
8​
4​
2​
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
I'm using this formula, to then auto-populate a payroll journal for context
 
Upvote 0
Is this how your data is laid out? Nominal Code is listed directly below the Department column?
 
Upvote 0
Is this how your data is laid out? Nominal Code is listed directly below the Department column?
In my data there is no row space where the heading nominal code is.

So Col a is my nominal code
row 1 is my department code and A2: K8 (I'm guessing at this range) is my data range to sum.
 
Upvote 0
This one threw me for a loop. Maybe an option would be using Sumproduct.
Book1
ABCDEFGHIJK
1Nominal Code12345678910
2A0174151007810813581198
3B85136163331649198138199182
4C2066182117111981652679156
5D159812119040611323535
6E177061881882716419191152
7F16163172131384117147137184
8
9
10174
Sheet1
Cell Formulas
RangeFormula
A10A10=SUMPRODUCT((A2:A7=A2)*(B1:K1=C1)*B2:K7)
 
Upvote 0
Thank you I'll give it a go. I also need to add an indirect into the formula so I can change the tab references to look at different months. That will be my next step.
 
Upvote 0
Thank you I'll give it a go. I also need to add an indirect into the formula so I can change the tab references to look at different months. That will be my next step.
As that would be a different question, please post a new thread with the new requirements so that others may take a look at it and come up with possible solutions.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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