Need to Sum a column if another column contains a Letter followed by numbers

PFS12

New Member
Joined
Jan 28, 2014
Messages
43
Office Version
  1. 2016
Platform
  1. Windows
R04973LEICA 2DEXC KIT & PA20180219$0.00$0.01MI$0.011
R05054MISC RE-RENTAL UNIT20180416$0.00$0.01MA$0.055
R05065MISC RE-RENTAL UNIT20180419$0.00$0.01MA$0.011

<tbody>
</tbody>


The above is a snapshot of a sheet I run, The invoices come in labeled with an R for "rental". the will be mixed in with "P" and "Q" and "W" documents. How can I have a cell search for invoices that contain an R? I used

=SUMIFS(October!$L$19:$L$2004,October!F19:$F$2004,"*"&R&"*") but it keeps telling me the R is wrong. if it fixes it for me it ends up like

=SUMIFS(October!$L$19:$L$2004,October!F19:$F$2004,"*"&"*") and works but I am not sure if it really works, I can't copy and paste it into a different month and make it work again.

The dollar amount I want summed is in column L and the invoices come in in column F.

Thanks in advanced to anyone who can teach me the error of my ways.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi there, your formula is correct, just instead of "*" & R & "*", make it "*" & "R" & "*". The R part has to be in quotes.
 
Upvote 0
Hi,

Actually, all you need is "*R*" rather than "*"&"R"&"*", however, either way will work.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,582
Members
449,089
Latest member
Motoracer88

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