Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Potatosalad2
 
Posts: n/a
Default Lookup and Sum in same cell


SHNAME ENTDATE SYMBOL QTY RATE COMM
C78 1/24/2005 CSCO 1100 0.018 $20
C78 1/28/2005 CSCO -5439 0.018 $100
C78 2/23/2005 CSCO 50 0.017 $1
C78 4/5/2005 CSCO -7892 0.018 $140
C78 4/13/2005 CSCO 3786 0.018 $69

I am trying to create a lookup formula that will search by SHNAME, find
each entry and sum the COMM column in one cell:

SHNAME COMM
C78 $360

This worksheet is thousands of rows long with multiple rows for each
SHNAME.
Thanks in advance


--
Potatosalad2
------------------------------------------------------------------------
Potatosalad2's Profile: http://www.excelforum.com/member.php...o&userid=20834
View this thread: http://www.excelforum.com/showthread...hreadid=472705

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMIF(A:A,"C78",C:C)

HTH
Bob

"Potatosalad2"
wrote in message
news:Potatosalad2.1wc8me_1128362724.8386@excelforu m-nospam.com...

SHNAME ENTDATE SYMBOL QTY RATE COMM
C78 1/24/2005 CSCO 1100 0.018 $20
C78 1/28/2005 CSCO -5439 0.018 $100
C78 2/23/2005 CSCO 50 0.017 $1
C78 4/5/2005 CSCO -7892 0.018 $140
C78 4/13/2005 CSCO 3786 0.018 $69

I am trying to create a lookup formula that will search by SHNAME, find
each entry and sum the COMM column in one cell:

SHNAME COMM
C78 $360

This worksheet is thousands of rows long with multiple rows for each
SHNAME.
Thanks in advance


--
Potatosalad2
------------------------------------------------------------------------
Potatosalad2's Profile:
http://www.excelforum.com/member.php...o&userid=20834
View this thread: http://www.excelforum.com/showthread...hreadid=472705



  #3   Report Post  
shternm
 
Posts: n/a
Default


SUMIF should work for you.


--
shternm
------------------------------------------------------------------------
shternm's Profile: http://www.excelforum.com/member.php...nfo&userid=858
View this thread: http://www.excelforum.com/showthread...hreadid=472705

  #4   Report Post  
Potatosalad2
 
Posts: n/a
Default


Thank you for your help.

Now how can I get a list of SHNAME without duplicates?


--
Potatosalad2
------------------------------------------------------------------------
Potatosalad2's Profile: http://www.excelforum.com/member.php...o&userid=20834
View this thread: http://www.excelforum.com/showthread...hreadid=472705

  #5   Report Post  
Zack Barresse
 
Posts: n/a
Default

You could use AdvancedFilter | Unique Values for a unique list without
duplicates.

--
Regards,
Zack Barresse, aka firefytr, (GT = TFS FF Zack)


"Potatosalad2"
wrote in message
news:Potatosalad2.1wcbed_1128366322.5111@excelforu m-nospam.com...

Thank you for your help.

Now how can I get a list of SHNAME without duplicates?


--
Potatosalad2
------------------------------------------------------------------------
Potatosalad2's Profile:
http://www.excelforum.com/member.php...o&userid=20834
View this thread: http://www.excelforum.com/showthread...hreadid=472705





  #6   Report Post  
Potatosalad2
 
Posts: n/a
Default


These suggestions work perfectly. Thank you all very much for your
help!!


--
Potatosalad2
------------------------------------------------------------------------
Potatosalad2's Profile: http://www.excelforum.com/member.php...o&userid=20834
View this thread: http://www.excelforum.com/showthread...hreadid=472705

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



All times are GMT +1. The time now is 12:31 AM.

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"