Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Lookup Formula Needed

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

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Lookup Formula Needed

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

On Jan 22, 6:26*pm, sweetmans
wrote:
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


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Lookup Formula Needed

Thanks very much! This does exactly what I need it to do!


"מיכאל (מיקי) אבידן" wrote:

If the "R" is always the left most character - try this:
=SUMPRODUCT((LEFT(B1:B6)="R")*(A1:A6))
Micky


"sweetmans" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup Formula Needed Deepak Excel Discussion (Misc queries) 3 December 29th 08 09:05 PM
Complicated lookup/match formula help needed! Jason[_11_] Excel Worksheet Functions 2 March 21st 08 12:39 AM
Formula help needed! lookup/match unsure which bbrant2 Excel Worksheet Functions 0 November 19th 07 09:31 PM
Lookup in Two Columns, Help needed with formula charles Excel Worksheet Functions 10 October 16th 06 11:17 PM
LOOKUP Formula help needed Weasel Excel Discussion (Misc queries) 1 March 21st 06 10:13 PM


All times are GMT +1. The time now is 09:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright 2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"