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
[TABLE="width: 959"]
<tbody>[TR]
[TD]R04973[/TD]
[TD]LEICA 2DEXC KIT & PA[/TD]
[TD]20180219[/TD]
[TD]$0.00[/TD]
[TD]$0.01[/TD]
[TD]MI[/TD]
[TD]$0.01[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]R05054[/TD]
[TD]MISC RE-RENTAL UNIT[/TD]
[TD]20180416[/TD]
[TD]$0.00[/TD]
[TD]$0.01[/TD]
[TD]MA[/TD]
[TD]$0.05[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]R05065[/TD]
[TD]MISC RE-RENTAL UNIT[/TD]
[TD]20180419[/TD]
[TD]$0.00[/TD]
[TD]$0.01[/TD]
[TD]MA[/TD]
[TD]$0.01[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]


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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,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