Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtotals from Named Range on other worksheet

I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Subtotals from Named Range on other worksheet

sgodschalk wrote:
I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?


Try SUMPRODUCT. See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtotals from Named Range on other worksheet

That might be the ticket but I am having trouble comparing the date parts.
The actual date entered on sheet one are 6/1/2009, 6/2/2009 and so on. Where
as the date I am using for the subtotal sheet is 6-2009 (a custom date format)

"Glenn" wrote:

sgodschalk wrote:
I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?


Try SUMPRODUCT. See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Subtotals from Named Range on other worksheet

Use the MONTH() function to make the match.

=SUMPRODUCT((MONTH(A1)=MONTH(B2:B100))*C2:C100)

would total the cells in C2:C100 where the month in B2:B100 is the same as the
month in A1. If the data spans more than one year, try it this way:

=SUMPRODUCT(((A1-DAY(A1))=(B2:B100-DAY(B2:B100)))*C2:C100)


sgodschalk wrote:
That might be the ticket but I am having trouble comparing the date parts.
The actual date entered on sheet one are 6/1/2009, 6/2/2009 and so on. Where
as the date I am using for the subtotal sheet is 6-2009 (a custom date format)

"Glenn" wrote:

sgodschalk wrote:
I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?

Try SUMPRODUCT. See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Subtotals from Named Range on other worksheet

Yes over 2000 rows of transactions spanning 5 years. So the second formula
would have to be utilized. Thanks for that.

Since the data is on a separate worksheet in a named range, can I reference
the range or do I use just the sheet name in the formula? Thanks again for
the help.


"Glenn" wrote:

Use the MONTH() function to make the match.

=SUMPRODUCT((MONTH(A1)=MONTH(B2:B100))*C2:C100)

would total the cells in C2:C100 where the month in B2:B100 is the same as the
month in A1. If the data spans more than one year, try it this way:

=SUMPRODUCT(((A1-DAY(A1))=(B2:B100-DAY(B2:B100)))*C2:C100)


sgodschalk wrote:
That might be the ticket but I am having trouble comparing the date parts.
The actual date entered on sheet one are 6/1/2009, 6/2/2009 and so on. Where
as the date I am using for the subtotal sheet is 6-2009 (a custom date format)

"Glenn" wrote:

sgodschalk wrote:
I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?

Try SUMPRODUCT. See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Subtotals from Named Range on other worksheet

You can use either. Just make sure that the ranges are all the same size. If
you are going to reference the sheet name, it would look like this:

=SUMPRODUCT(((A1-DAY(A1))=('Data Sheet'!B2:B100-DAY('Data Sheet'!B2:B100)))*
'Data Sheet'!C2:C100)


sgodschalk wrote:
Yes over 2000 rows of transactions spanning 5 years. So the second formula
would have to be utilized. Thanks for that.

Since the data is on a separate worksheet in a named range, can I reference
the range or do I use just the sheet name in the formula? Thanks again for
the help.


"Glenn" wrote:

Use the MONTH() function to make the match.

=SUMPRODUCT((MONTH(A1)=MONTH(B2:B100))*C2:C100)

would total the cells in C2:C100 where the month in B2:B100 is the same as the
month in A1. If the data spans more than one year, try it this way:

=SUMPRODUCT(((A1-DAY(A1))=(B2:B100-DAY(B2:B100)))*C2:C100)


sgodschalk wrote:
That might be the ticket but I am having trouble comparing the date parts.
The actual date entered on sheet one are 6/1/2009, 6/2/2009 and so on. Where
as the date I am using for the subtotal sheet is 6-2009 (a custom date format)

"Glenn" wrote:

sgodschalk wrote:
I have a worksheet that holds all of our daily transactions over the last 5
years. Been using just basic Pivots and charts until now. But I need I need
something more complex. The TransactionsDB range an sheet 1 holds a date in
the first column ie 6/1/2009. The breakdown of tender is in the next columns
ie "Cahs", Visa" so on and so forth.

In a separate worksheet, sheet 2, column A holds a date in a format of
6-2009. In Column B I need to query and subtotal all the "Cash" (column "C"
in the TransactionsDB range) transactions for the given month.

I have tinkered with Sumif, vlookup and all sorts of different formulas and
I cannot get it to work on my own...can you help?

Try SUMPRODUCT. See if this helps:

http://www.contextures.com/xlFunctio...tml#SumProduct

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
Do not specify worksheet in a named range hmm Excel Discussion (Misc queries) 3 September 18th 07 01:30 PM
Getting a named range to appear in another worksheet John Excel Discussion (Misc queries) 2 July 28th 07 02:12 AM
Removing `named range´ from worksheet Gregory Excel Discussion (Misc queries) 3 February 15th 07 07:54 PM
Using Named Range with protection on the worksheet txjag007 Excel Discussion (Misc queries) 1 September 7th 06 11:54 AM
toggling which worksheet a named range refers to Loftus Excel Discussion (Misc queries) 0 March 30th 05 12:05 AM


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