Multiple Criteria Sumif

vjimen2

New Member
Joined
Dec 12, 2017
Messages
8
Hello Everyone,

I'm stuck on a formula and trying to get it to work correctly. I'm trying use a formula that will look at two different criteria, one in a column and one in a row. Once it finds both criteria it will pull back a certain cell value where the two meet. The data is very large and has about 5000 rows. Also, both of the criteria can be changed through a drop down box to meet certain needs of the business.

EX. Cell A1 has "YTD" but can change to Q1 or Q2...

Cell A3 has "Store Payables" and can change to Outside service, Labor....

In a very large range of data i need the formula to find where the two cells meet on the axis and pull back that value.

And one more thing, the "Store Payables" is a Nickname for the real value that is going to be in the range of cells to look for that value. I've already created a table where a vlookup could be used to pull the real name of the value to be found.

Thank you for any help in solving this one!


EDIT:
=SUMIF('Input - Essbase'!$C$60:$C$4809,VLOOKUP(B23,'Account Index'!$C$39:$D$71,2),'Input - Essbase'!$H$60:$S$4809)/1000000

This is the formula I've been trying to use but it will not pull back the correct amount and it is also only looking at one criteria. I tried using an "AND("function but had no luck.
 
Last edited by a moderator:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Re: Mulitple Criteria Sumif

=SUMIFS('Input - Essbase'!$C$59:$X$4809,'Input - Essbase'!$H$59:$X$59,'Exec - Summary P&L Totals'!$B$3,'Input - Essbase'!$C$590:$C$4809,VLOOKUP('Exec - Summary P&L Totals'!B23,'Account Index'!$C$39:$D$71,2))/1000000

I also tried this but it gives me a #value error.
 
Upvote 0
Re: Mulitple Criteria Sumif

Your Criteria ranges need to be the same size.
You have some starting at C59 and others starting at C590.
I assume that is just a typo.
 
Upvote 0
Re: Mulitple Criteria Sumif

Thanks for finding that, it was a typo. I corrected that part in the formula and still get the #value error. Do the criteria ranges need to include the sum range? So instead of C59:C4809 it should be C59:X4809?
 
Upvote 0
Upvote 0
Re: Mulitple Criteria Sumif

Thanks! That started pulling back a number. Unfortunately that number is zero. Not sure why, but at least its pulling back something now.
 
Upvote 0
Re: Mulitple Criteria Sumif

Thanks! That started pulling back a number. Unfortunately that number is zero. Not sure why, but at least its pulling back something now.

Check what is being returned by
VLOOKUP('Exec - Summary P&L Totals'!B23,'Account Index'!$C$39:$D$71,2)

If you need an exact match, try
VLOOKUP('Exec - Summary P&L Totals'!B23,'Account Index'!$C$39:$D$71,2,0)

M.
 
Upvote 0
Re: Mulitple Criteria Sumif

Thanks Marcelo, the vlookup needed the 0 at the end to pull an exact match. After correcting this it still doesn't pull back the correct value, just a zero.

Objective is to make this find a value in the row, find a value in the column and then bring back the cell value where they meet. Like a multiplication table, you find 9 and 9 and the cell equals 81. Is there an easier way to make that happen in excel other than using sumifs?
 
Upvote 0
Re: Mulitple Criteria Sumif

=INDEX('Input - Essbase'!$C$59:$X$4809,MATCH(VLOOKUP(B24,'Account Index'!$C$39:$D$71,2,0),'Input - Essbase'!$C$59:$C$4809,0),MATCH('Exec - Summary P&L Totals'!$B$3,'Input - Essbase'!$C$59:$X$59,0))/1000000

This formula got it to work! Thanks everyone for the help.
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,668
Members
449,463
Latest member
Jojomen56

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