Sumif total using wild card

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,841
Office Version
  1. 365
Platform
  1. Windows
I have drop-down account numbers is H516, formula in J516 works fine, but I want to add total in the list of account numbers, in cell H516, to get total off all the accounts.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
=SUMIF(B460:B513,"*"&H516&"*",L460:L513) <o:p></o:p>
<o:p> </o:p>
How can I do this.<o:p></o:p>
<o:p> </o:p>
Thanks.<o:p></o:p>
<o:p> </o:p>
Sohail <o:p></o:p>
 

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.
=SUMPRODUCT(--(ISNUMBER(MATCH(rng,B460:B513,0))),L460:L513)

where rng is the range of values being used in the dropdown in H516
 
Upvote 0
Maybe try:

=sumproduct(--(isnumber(find(h516,b460:b513))),l460:l513)

Hope that helps.
 
Upvote 0
Thank you to both of you, although both formula are almost identical, I used schielrn formula, because xld's Match, formula can not work on my data, since in column B, I have numbers like 18600-2456, 18700-1234, etc.
But again, my original formula does the same, I need a formula that can do sum of all the accounts. what do I have to do to get it.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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