A dynamic SumIfs formula

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,341
Office Version
  1. 365
Platform
  1. Windows
I need a formula that where the column its summing (Sum_Range) is dynamic. It will be based on what the user selects. I have UserNames down column A. The formula would have to do a SumIf where it finds "Joe" in column A and Sum a column based on another criteria.

I have 5 Columns. The first column is a name. The next 4 columns are titles 1-4, 5-9, 10-24, 25-59 & 60-100
If the User enters "Rick" in Cell A1 and "5-9" in B2 then I need the sumif to total down "5-9" where column A equals Rick.
But I cant do a bunch of Nested If's because I have numerous columns. it doesn't only go to 60-100 I don't know if a type of "Match" formula can be added so it knows which column to add.
 

Attachments

  • XYZ Example.JPG
    XYZ Example.JPG
    38.9 KB · Views: 13
If you use SUM on a filtered range it will NOT ignore hidden rows, therefore it will not give the same value as the formula.
To check the formula is correct you need to use SUBTOTAL on the filtered range.
 
Upvote 0

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,078
Latest member
skydd

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