LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default Lookup for cells with text in them

Hey Guys,
Thanks for the replies. Don't know how I'd overlooked the sumif function
(i've used it before) and it works perfectly for what I'm trying to acheive.
Great forum and thanks for the input.

Cheers,

Al.

"Max" wrote:

Another option would be to create a pivot, with col A's header placed in ROW
area, col B's header in DATA (set to SUM). The pivot will return both the
list of unique items (in col A) and the corresponding sums (from col B)
adjacent to it. Just a couple of seconds, and its done. Good to know, even if
you prefer the formulas route. Any worth? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Alan" wrote:
Can anybody help me with the following problem. Im creating a spreadsheet
that shows expenses for a business structure. The expenses are recorded as
they occur (in chronological order) and are classified into about 20
different categories. I want to be able to compile the data at the end of the
month and arrive at totals for each of the 20 categories. Using the if
function isnt going to work here as the formula would be a hundred miles
long.
I need something like (in English): search D1:D20 (column which shows the
expense category) for A40 (which could contain €śaccounting€ť, €śmotor vehicle
expense€ť etc) and sum the cells to the right (showing the value of the
expense) for each cell in D1:D20 where the text in the cell is the same as
the text in A40. This would allow me to have a summary at the end showing the
total accounting cost or motor vehicle expense etc. Ive tried using the
lookup and similar functions but they dont seem to work when youre using
text. Im using Excel 2003.
For example

Column A Column B

Expense A 100
Expense B 10
Income 20
Expense A 1000
Income 400

I want to write a formula that will total all cells in column B that
correspond to €śExpense A€ť in column A which would equal 100 + 1,000 = 1,100.

Im sure there must be a way to do this but Im running into a brick wall.
Note that there will be about 40 different expense types, so nesting if
functions isnt going to be feasible.

Any help would be greatly appreciated.

Cheers,

Alan.



 
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
Returning data of multiple cells for lookup of mulltiple cells HELP on data reference formulas Excel Discussion (Misc queries) 1 October 29th 08 08:27 PM
2 criteria lookup of text. Return text form column 3. SUMPRODUCT t zzxxcc Excel Worksheet Functions 2 August 26th 08 11:04 PM
Search, find or lookup defined text in text string zzxxcc Excel Worksheet Functions 9 September 6th 07 09:37 PM
Lookup Function Referencing cells, not text values Justin Excel Worksheet Functions 3 November 6th 06 07:30 PM
lookup a text cell and return text Cristi R Excel Discussion (Misc queries) 4 August 2nd 06 02:41 PM


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