Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default total of cells that are next to a cell that contains specific text

Exporting a batch from a database into Excel daily. Batch contains money
posted to certain line item numbers. There are multiple rows of identical
text (line item numbers) with a dollar amount in the cell next to it. There
are also a number of different line items numbers per sheet. I need to
create a formula on another sheet in the workbook that will run a sum total
of all the money associated with text that contains the same characters.

For example:

Line item = Gifts 04325
cell next to line item = $100
another cell contains "Gifts 04325"
cell next to line item = $50
another cell contains "Gifts 04325"
cell next to line item = $75

A cell on another sheet contains a formula that finds all cells containing
text "Gifts 04325" and totals the cell next to each of them. In this example
the number that displays in the cell is $225.

On the same sheet:

Line item = Pledges 10335
cell next to line item = $1000
another cell contains "Pledges 10335"
cell next to line item = $500
another cell contains "Pledges 10335"
cell next to line item = $750

A cell on another sheet contains a formula that finds all cells containing
text "Pledges 10335" and totals the cell next to each of them. In this
example the number that displays in the cell is $2250.

Can anyone help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default total of cells that are next to a cell that contains specific text

use SUMPRODUCT:

Sheet1 columns A & B contain line items and amounts.

On Sheet2 column A is list of line items e.g A2 contains "Gifts 04325" , so
in B2 put:

=SUMPRODUCT((Sheet1!A2:A100=A2)*(Sheet1!B2:B100))

Copy down as required.

HTH

"suziQ" wrote:

Exporting a batch from a database into Excel daily. Batch contains money
posted to certain line item numbers. There are multiple rows of identical
text (line item numbers) with a dollar amount in the cell next to it. There
are also a number of different line items numbers per sheet. I need to
create a formula on another sheet in the workbook that will run a sum total
of all the money associated with text that contains the same characters.

For example:

Line item = Gifts 04325
cell next to line item = $100
another cell contains "Gifts 04325"
cell next to line item = $50
another cell contains "Gifts 04325"
cell next to line item = $75

A cell on another sheet contains a formula that finds all cells containing
text "Gifts 04325" and totals the cell next to each of them. In this example
the number that displays in the cell is $225.

On the same sheet:

Line item = Pledges 10335
cell next to line item = $1000
another cell contains "Pledges 10335"
cell next to line item = $500
another cell contains "Pledges 10335"
cell next to line item = $750

A cell on another sheet contains a formula that finds all cells containing
text "Pledges 10335" and totals the cell next to each of them. In this
example the number that displays in the cell is $2250.

Can anyone help?

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
If two cells have specific text to count as 1 Jazzman10 Excel Worksheet Functions 4 June 26th 06 05:09 PM
total cells with text and number EX: GS-5 dap1 Excel Worksheet Functions 4 May 4th 06 02:21 PM
How do i total cells in excel that contain specific text? Zurbs17 Excel Discussion (Misc queries) 4 March 25th 06 01:49 AM
getting a total for a row of cells where some are text babs Excel Discussion (Misc queries) 1 February 1st 06 04:51 PM
counting total cells with text peace Excel Discussion (Misc queries) 9 September 8th 05 04:32 PM


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