Sumif using wildcards & number range

ajfaber

New Member
Joined
May 13, 2011
Messages
2
Hello everyone, :)

I did some searching through the discussion boards and I wanted to be sure I understood my apparent dilemma: Wildcards cannot be used to search a number range..... ?

Example(Input! Wkst):

Job#-------Desc---------Lumber used
501--------House--------1520
502--------Farm----------25
502.2------Farm-field-----600
502.3------Farm-house---300

-On a separate worksheet I am importing the information but consolidating the sum of the lumber amounts into one job#.

Example(Wkst1):

Job#-------Desc---------Lumber used
501--------House--------1520
502--------Farm----------925

I was trying to use =SUMIF(Input!$A$2:$A$5,"*"&A1&"*",Input!$C$2:$C$5)

The 'function arguement' window shows that it recognizes what I am trying to do, and that I have all the arguements right, but the solution returns an answer of 0 no matter what the answer might really be.

Please let me know if I am understanding this correctly so I don't spend more time trying to make it work, and if you have a better solution, I would love your advice.

Thanks in advance!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hello everyone, :)

I did some searching through the discussion boards and I wanted to be sure I understood my apparent dilemma: Wildcards cannot be used to search a number range..... ?

Example(Input! Wkst):

Job#-------Desc---------Lumber used
501--------House--------1520
502--------Farm----------25
502.2------Farm-field-----600
502.3------Farm-house---300

-On a separate worksheet I am importing the information but consolidating the sum of the lumber amounts into one job#.

Example(Wkst1):

Job#-------Desc---------Lumber used
501--------House--------1520
502--------Farm----------925

I was trying to use =SUMIF(Input!$A$2:$A$5,"*"&A1&"*",Input!$C$2:$C$5)

The 'function arguement' window shows that it recognizes what I am trying to do, and that I have all the arguements right, but the solution returns an answer of 0 no matter what the answer might really be.

Please let me know if I am understanding this correctly so I don't spend more time trying to make it work, and if you have a better solution, I would love your advice.

Thanks in advance!
Wildcards don't work on numbers.

Try it like this...

=SUMPRODUCT(--(INT(Input!$A$2:$A$5)=A1),Input!$C$2:$C$5)
 
Upvote 0
Thanks T. Valco! It appears that your formula works great. Saves me having to put a silly " ' " in front of my numbers when I 10-key.
 
Upvote 0

Forum statistics

Threads
1,224,591
Messages
6,179,768
Members
452,940
Latest member
rootytrip

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