#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Search and add

Hi,
I have data in 2 columns ex. Col 1: Name, Col 2: Amount
A name can appear multiple times with same or different amounts.

Ex: Col 1 : A, C, A, A,A ; Col 2: $10, $30, $40, $20, $30

Can someone suggest if there is a function in excel 2003 i can use with the
data from Col 1 and Col 2 and by giving a search entry "A" i should get the
sum of all corresponding A entries in Column 2 i.e. $100

Thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Search and add

Try something like this...

=SUMIF(A2:A6,"A",B2:B6)

Or, using a cell to hold the criteria:

D2 = A

=SUMIF(A2:A6,D2,B2:B6)

--
Biff
Microsoft Excel MVP


"Vishnu" wrote in message
...
Hi,
I have data in 2 columns ex. Col 1: Name, Col 2: Amount
A name can appear multiple times with same or different amounts.

Ex: Col 1 : A, C, A, A,A ; Col 2: $10, $30, $40, $20, $30

Can someone suggest if there is a function in excel 2003 i can use with
the
data from Col 1 and Col 2 and by giving a search entry "A" i should get
the
sum of all corresponding A entries in Column 2 i.e. $100

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Search and add

SumIf will do what you are asking...
--
HTH...

Jim Thomlinson


"Vishnu" wrote:

Hi,
I have data in 2 columns ex. Col 1: Name, Col 2: Amount
A name can appear multiple times with same or different amounts.

Ex: Col 1 : A, C, A, A,A ; Col 2: $10, $30, $40, $20, $30

Can someone suggest if there is a function in excel 2003 i can use with the
data from Col 1 and Col 2 and by giving a search entry "A" i should get the
sum of all corresponding A entries in Column 2 i.e. $100

Thanks in advance

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default Search and add

It worked..Thanks

"Jim Thomlinson" wrote:

SumIf will do what you are asking...
--
HTH...

Jim Thomlinson


"Vishnu" wrote:

Hi,
I have data in 2 columns ex. Col 1: Name, Col 2: Amount
A name can appear multiple times with same or different amounts.

Ex: Col 1 : A, C, A, A,A ; Col 2: $10, $30, $40, $20, $30

Can someone suggest if there is a function in excel 2003 i can use with the
data from Col 1 and Col 2 and by giving a search entry "A" i should get the
sum of all corresponding A entries in Column 2 i.e. $100

Thanks in advance

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
file search or search files Richad Excel Discussion (Misc queries) 0 October 22nd 09 07:56 PM
Functions (search within search result) reply to this please Nick Excel Worksheet Functions 1 February 17th 09 03:57 AM
Functions (search within search result) Nick Excel Worksheet Functions 1 February 17th 09 03:51 AM
Seo , Search Engine Optimizer , Seo Search engine Optimization , search engine optimization services, SEO Consulting Se0 Guy Excel Discussion (Misc queries) 0 March 8th 07 04:08 AM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM


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

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

About Us

"It's about Microsoft Excel"