Can you SUMIF using a cell that is populated via data validation

mrkris1982

Active Member
Joined
Apr 16, 2009
Messages
407
Column A of sheet 1 is populated with names.....via list validation
Column U of sheet 1 has a $ amount

Lets say in A2, i select the name Bob Jones.....fill out some other stuff and the total cost in U2 is $400

On sheet 3, B2, I have this formula...trying to capture the total number of dollars that are associated with Bob Jones:

Code:
=SUMIF('sheet1'!A:A,"*Jones*",'sheet1'!U:U)

The result is #REF but not sure why - making the assumption its due to the list validation. Not sure if this can be confirmed, but wondering how I can work around this while keeping the validation in place.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
No it has nothing to do with the Validation List being used within the cell, I am able to use SumIf with a column populated with data from a Validation List. I think you have a syntax error on your sheet name, I see added single quotes and I am not sure if sheet names are case sensitive or not but your using sheet1 vs Sheet1

Correct Way
Code:
=SUMIF(Sheet1!A:A,"*Jones*",Sheet1!U:U)

Incorrect - Note the single quotes, those are used in VBA code not in formulas in a cell.
Code:
=SUMIF([COLOR=#ff0000]'[/COLOR]Sheet1[COLOR=#ff0000]'[/COLOR]!A:A,"*Jones*",[COLOR=#ff0000]'[/COLOR]Sheet1[COLOR=#ff0000]'[/COLOR]!U:U)

I don't get a #REF error but it just returns 0 if I type it the way you have it.
 
Last edited:
Upvote 0
I suspect that in col U on sheet1 you have #REF ! values.
 
Upvote 0

Forum statistics

Threads
1,215,626
Messages
6,125,896
Members
449,271
Latest member
bergy32204

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