Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default Totaling cells based on input value

I've created an Excel spreadsheet to track monthly spending. There are 13
total worksheets -- one for each month and a summary sheet. Within each month
individual spending activities will be recorded and the summary sheet is
intended to summarize the spending year to date (YTD) by Mold Base # (MB#).
Since each individual month could have dozens of spending activities I need
to take that data and total it in the summary worksheet based on the MB#.
Within the monthly worksheets the spending is not consecutively entered by
MB# (not consecutive rows). For example, row 1 could be MB#100, row #2
MB#850, row 3 MB# 100, row 4 MB#499, row 5 MB#100. I need the summary sheet
to total spending per MB# but the entries are not consecutive.

I know this probably sounds very confusing, but I have no simpler way to
explain. I am not sure what type of equation to use. Please offer some
insight. Thanks, Jamie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Totaling cells based on input value

Assuming your MB# is in column A of each sheet and column B is the data you
want...
=SUMPRODUCT(('January'!A2:A100="MB#100")*('January '!B2:B100))+SUMPRODUCT(('February'!A2:A100="MB#100 ")*('February'!B2:B100))+....

And so on for each month.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jamie" wrote:

I've created an Excel spreadsheet to track monthly spending. There are 13
total worksheets -- one for each month and a summary sheet. Within each month
individual spending activities will be recorded and the summary sheet is
intended to summarize the spending year to date (YTD) by Mold Base # (MB#).
Since each individual month could have dozens of spending activities I need
to take that data and total it in the summary worksheet based on the MB#.
Within the monthly worksheets the spending is not consecutively entered by
MB# (not consecutive rows). For example, row 1 could be MB#100, row #2
MB#850, row 3 MB# 100, row 4 MB#499, row 5 MB#100. I need the summary sheet
to total spending per MB# but the entries are not consecutive.

I know this probably sounds very confusing, but I have no simpler way to
explain. I am not sure what type of equation to use. Please offer some
insight. Thanks, Jamie

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default Totaling cells based on input value

Luke,

SUMPRODUCT(('January'!A2:A100="MB#100")*('January' !B2:B100))

So the first portion of the equation (let's say January) says -- search all
entries in cells A2 thru A100 and total all that =MB#100? What does the
*('January'......) do to the equation?

Thanks, Jamie

"Luke M" wrote:

Assuming your MB# is in column A of each sheet and column B is the data you
want...
=SUMPRODUCT(('January'!A2:A100="MB#100")*('January '!B2:B100))+SUMPRODUCT(('February'!A2:A100="MB#100 ")*('February'!B2:B100))+....

And so on for each month.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Jamie" wrote:

I've created an Excel spreadsheet to track monthly spending. There are 13
total worksheets -- one for each month and a summary sheet. Within each month
individual spending activities will be recorded and the summary sheet is
intended to summarize the spending year to date (YTD) by Mold Base # (MB#).
Since each individual month could have dozens of spending activities I need
to take that data and total it in the summary worksheet based on the MB#.
Within the monthly worksheets the spending is not consecutively entered by
MB# (not consecutive rows). For example, row 1 could be MB#100, row #2
MB#850, row 3 MB# 100, row 4 MB#499, row 5 MB#100. I need the summary sheet
to total spending per MB# but the entries are not consecutive.

I know this probably sounds very confusing, but I have no simpler way to
explain. I am not sure what type of equation to use. Please offer some
insight. Thanks, Jamie

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
data validation, totaling values based off dropdown lists Jesse Blanchard[_2_] Excel Discussion (Misc queries) 5 September 15th 08 05:15 PM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
help w/ totaling up cells melisa0820 Excel Discussion (Misc queries) 1 June 11th 07 08:48 PM
IF= Cells not totaling Bradley Excel Worksheet Functions 4 June 20th 06 11:43 PM
Totaling amounts based on duration [email protected] Excel Worksheet Functions 1 January 13th 06 02:41 PM


All times are GMT +1. The time now is 12:54 PM.

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"