Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default Search a column for values, return a value from adj column

i want to setup some sort of formula to search a column for specific keywords
(multiple keywords as well) and return a value from an adjacent column
(organizing my expenses), and then add the values up:

example:

A B C D E
1 Jewel 50 65 20 60
2 Dominicks 15
3 Speedway 50
4 Subway 10
5 Wendys 10
6 KFC 10

look in the list, search for jewel and dominicks, return 65 (50 + 15).

look in the list, search for wendys and subway, return 20 (10 + 10).

and then if a value is not technically searched for (just some of misc
value), still return the additive values of each adjacent data. so speedway
and kfc weren't in the formulas, take their adjacent values and add them
together, 60.

there's probably already some sort of checkbook/expenses sheet setup like
this, i just have to find it.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 287
Default Search a column for values, return a value from adj column

to add another twist, the values in the A column will have other words
besides just what i'm searching for
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Search a column for values, return a value from adj column

=SUMPRODUCT((A1:A10={"jewel","Dominicks"})*(B1:B10 ))

=SUM(B:B)-SUMPRODUCT((A1:A10={"jewel","Dominicks","Subway"," Wendys"})*(B1:B10))

--
__________________________________
HTH

Bob

"Adam" wrote in message
...
i want to setup some sort of formula to search a column for specific
keywords
(multiple keywords as well) and return a value from an adjacent column
(organizing my expenses), and then add the values up:

example:

A B C D E
1 Jewel 50 65 20 60
2 Dominicks 15
3 Speedway 50
4 Subway 10
5 Wendys 10
6 KFC 10

look in the list, search for jewel and dominicks, return 65 (50 + 15).

look in the list, search for wendys and subway, return 20 (10 + 10).

and then if a value is not technically searched for (just some of misc
value), still return the additive values of each adjacent data. so
speedway
and kfc weren't in the formulas, take their adjacent values and add them
together, 60.

there's probably already some sort of checkbook/expenses sheet setup like
this, i just have to find it.



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
Search, Match, And return corresponding column value sayerplayer Excel Worksheet Functions 0 February 13th 08 04:15 PM
Search a column for a value and return T or F CraigMacE Excel Discussion (Misc queries) 2 January 12th 08 09:44 PM
Search Column Data and Return Multiple Values across Row Sam via OfficeKB.com Excel Worksheet Functions 3 September 30th 06 07:50 PM
Search column for value and return TRUE or FALSE Remote Desktop Connection hotkey Excel Worksheet Functions 8 July 13th 06 05:07 PM
Search one column and return value from next column shwekhaw Excel Discussion (Misc queries) 2 May 3rd 05 09:52 AM


All times are GMT +1. The time now is 01:06 AM.

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"