Lookup Formula Needed

S

sweetmans

Here is what I need the formula to do: I will have two columns, Column A
will have a value and Column B will have a code. I want to Sum the numbers
in Column A IF the Code in Column B has the letter "R" in it. So, using
the data below, my formula would add the values 100+400+500 from column A
and return a result of 1,000. Any help would be appreciated!

Column A Column B
100 R1
200 M3
400 R2
500 R6
700 I1
300 M3
 
P

Pete_UK

Try this:

=SUMIF(B:B,"*R*",A:A)

The asterisk is a wildcard character, so it will match on anything
with R in it. If you only want to match on a code beginning with R you
could have "R*" instead.

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top