SUMIF with Wildcard.

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
The request is to create a formula in column E of the tab named "Compare (roll up)". The formula should be designed to look up a value in column A and match the corresponding text on sheet PGL, Column A. It should then sum up the values in column G that correspond to the matched text. However, there is a problem where the formula adds up similar information. For instance, it sums up values for 111_cash and 11_cash. Therefore, the original formula needs to be corrected. The current formula being used is: =SUMIF(PGL!A:A,"*"&'COMPARE (ROLLUP)'!$25,PGL!$G:$G)
A correction is required to fix this issue.

Thank you!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
"*" any sign.
"?" one sign
"??" 2 signs
etc.
So, "??_cash" summarise 11_cash and "???_cash" summarise 111_cash.

Book1
BCD
3111_cash100149
411_cash50101
5111_cash1
611_cash99
Sheet1
Cell Formulas
RangeFormula
D3D3=SUMIFS(C:C,B:B,"??_cash")
D4D4=SUMIFS(C:C,B:B,"???_cash")
 
Upvote 0
Thank you for your reply. 111_cash and 11_cash just an example,, there is more to this, may be I should add a sample here.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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