#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Sumif vs Text?

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sumif vs Text?

Your sum range appears to only be returning "B2".

Try this:

=SUMIF(D5:D10,A2,B5:B10)

HTH,
Paul

"Ken" wrote in message
...
Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F
adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?)
...
:( ... Thanks ... Kha



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Sumif vs Text?

It doesn't sound like you really want to do a SUM here though. I think just
an IF statement will get the results you've described.

In F5, enter:

=IF(D5=$A$2,$B$2,"")

Copy this formula down through F10.

Is that what you're looking for?

HTH,
Elkar


"Ken" wrote:

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Sumif vs Text?


=IF(A2="FRED",31,"Unknown")
"Ken" wrote:

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Sumif vs Text?

I'm a bit puzzled about your requirements, but I'll see if this is what
you're looking to do....

In Col_A, you have a list of unique names
In Col_B, you have numeric values associated with each name

Col_D has a list of names, possibly some names repeated.

In Col_F, you want to find the name from Col_D in the list in Col_A and
return the corresponding value from Col_B.

If that's true....try something like this.

Where D4: Fred
This formula will return the value associated with Fred
F4: =VLOOKUP(D4,$A$1:$B$10,2,0)
Copy that formula down as far as you need.

Am I on the right track here, or do you need something else?

Post back with more questions or clarifications
***********
Regards,
Ron

XL2002, WinXP


"Ken" wrote:

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Sumif vs Text?

=IF(COUNTIF(D5:D10,A2),B2,"")


"Ken" wrote:

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Ken is offline
external usenet poster
 
Posts: 590
Default Sumif vs Text?

Yes ... I found my way there ... Thanks ... Kha

"Teethless mama" wrote:

=IF(COUNTIF(D5:D10,A2),B2,"")


"Ken" wrote:

Excel2003 ... Sample

Cell A2 ... Fred
Cell B2 ... 31
Range D5:D10 ... Various Names (people ... including "Fred")
Col F ... Formula ... =sumif(D5:D10,A2,B2) ... Keeps returning "0"

Where I find "Fred" in Col D ... I want to place the "31" in Col F adjacent
to Fred ... I am sure it is simple ... but I have tried all kinds of
girations with the A2 .. AND I am just not getting it (Friday the 13th?) ...
:( ... Thanks ... Kha

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
sumif - looking to find text Tee Excel Discussion (Misc queries) 0 March 28th 07 02:10 AM
Sumif text is contained winthin a longer text string in a cell Johnny M[_2_] Excel Worksheet Functions 3 March 21st 07 02:50 PM
sumif with text? dj479794 Excel Discussion (Misc queries) 2 March 9th 07 04:41 PM
sumif 2 text conditions Ted Metro Excel Worksheet Functions 2 June 6th 06 05:48 PM
SUMIF exluding text Father Excel Worksheet Functions 10 December 29th 05 12:34 AM


All times are GMT +1. The time now is 03:20 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"