Sumif with criteria variable

ReportingRuth

New Member
Joined
Sep 28, 2010
Messages
8
I have a list of names and values. Names repeat. Want to sum values for repeated names. This code doesn't work. I think criteria needs to be "apples" and not a variable. Any ideas?

Thanks,
~RUTH~

Code:
=SUMIF(E3:E112,AB5,N3:N112)

E are names repeated.
N is values to be summed for repeated names.
AB is a specific name.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
That should work. Maybe if you are looking for contains the value

=SUMIF(E3:E112,"*"&AB5&"*",N3:N112)
 
Upvote 0
not sure why you're not getting an answer, is your syntax like this and are the values your summing actual numeric values?

Excel Workbook
LMNOP
6ObjectAmountCriteriaTotalW/Vogs Sample
7apples270Apples10192210
8oranges425Oranges13311331
9lemons493Lemons13961396
10lemons215
11apples324
12apples425
13oranges263
14oranges279
15oranges364
16lemons333
17lemons355
18brown apples239
19brown apples497
20brown apples455
Sheet1
Excel Workbook
P
72210
Sheet1
 
Upvote 0
Thank you for your example. This is good. I didn't understand my data correctly. You were right N7 works just fine alone.

Thanks again,
~RUTH~

not sure why you're not getting an answer, is your syntax like this and are the values your summing actual numeric values?

Excel Workbook
LMNOP
6ObjectAmountCriteriaTotalW/Vogs Sample
7apples270Apples10192210
8oranges425Oranges13311331
9lemons493Lemons13961396
10lemons215
11apples324
12apples425
13oranges263
14oranges279
15oranges364
16lemons333
17lemons355
18brown apples239
19brown apples497
20brown apples455
Sheet1
Excel Workbook
P
72210
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,596
Messages
6,179,807
Members
452,944
Latest member
2558216095

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