Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Need help creating formula to sum tables

Hi

I have a massive table which has various departments in column C, services
supplied by the departments in column D and the period invoiced in column L.

When I sort by column C, D and L, I am able to calculate the Gross amount
that has been spent for the period by doing a basic SUM of Column Y.

What I want to achieve is to create some drop down options ( 3 drop down
cells) on a new work sheet that allow me to choose the value for column C,D &
L in 3 fields and for another cell to correctly go back to the previous
worksheet and to correctly sort and calculate the overall total value.

I'm not sure how to do this..... Can someone please give me assistance?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Need help creating formula to sum tables

If your dropdown options are in A1:C1, and your data is in a worksheet called
Table, try:

=Sumproduct(--(Table!C1:C100=A1), --(Table!D1:D100=B1),
--(Table!L1:L100=C1), Table!Y1:Y100)

change range references to suit.

"Darren Ingram" wrote:

Hi

I have a massive table which has various departments in column C, services
supplied by the departments in column D and the period invoiced in column L.

When I sort by column C, D and L, I am able to calculate the Gross amount
that has been spent for the period by doing a basic SUM of Column Y.

What I want to achieve is to create some drop down options ( 3 drop down
cells) on a new work sheet that allow me to choose the value for column C,D &
L in 3 fields and for another cell to correctly go back to the previous
worksheet and to correctly sort and calculate the overall total value.

I'm not sure how to do this..... Can someone please give me assistance?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need help creating formula to sum tables

Wow. It does work, however wyhy do I need "--" before the brackets, as the
original formula doesn't have such thing. Just as an explanation, Darren post
it this request on my behalf, which I am really grateful for.

Can I also use this formula to add other conditionals such payment received
or yet to receive just by adding extra range with additional criteria??

Thanks Piotr

"JMB" wrote:

If your dropdown options are in A1:C1, and your data is in a worksheet called
Table, try:

=Sumproduct(--(Table!C1:C100=A1), --(Table!D1:D100=B1),
--(Table!L1:L100=C1), Table!Y1:Y100)

change range references to suit.

"Darren Ingram" wrote:

Hi

I have a massive table which has various departments in column C, services
supplied by the departments in column D and the period invoiced in column L.

When I sort by column C, D and L, I am able to calculate the Gross amount
that has been spent for the period by doing a basic SUM of Column Y.

What I want to achieve is to create some drop down options ( 3 drop down
cells) on a new work sheet that allow me to choose the value for column C,D &
L in 3 fields and for another cell to correctly go back to the previous
worksheet and to correctly sort and calculate the overall total value.

I'm not sure how to do this..... Can someone please give me assistance?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Need help creating formula to sum tables

the -- converts a true/false value to its underlying numeric value ( 1 for
true, 0 for false). It also converts "text" numbers to numeric values that
can be used in arithmetic operations.

Yes, you can add additional criteria. Be sure the ranges are the same size
as those already in the formula.

One of the best write-ups on sumproduct is on Bob phillips site
Xldynamic.com. At the bottom left of the screen you should see a linke
regarding Multiple Condition Tests. It's well worth the time to read.

Sorry for delayed response - I'm out of town and have limited computer access.
"Piotr (Peter)" wrote:

Wow. It does work, however wyhy do I need "--" before the brackets, as the
original formula doesn't have such thing. Just as an explanation, Darren post
it this request on my behalf, which I am really grateful for.

Can I also use this formula to add other conditionals such payment received
or yet to receive just by adding extra range with additional criteria??

Thanks Piotr

"JMB" wrote:

If your dropdown options are in A1:C1, and your data is in a worksheet called
Table, try:

=Sumproduct(--(Table!C1:C100=A1), --(Table!D1:D100=B1),
--(Table!L1:L100=C1), Table!Y1:Y100)

change range references to suit.

"Darren Ingram" wrote:

Hi

I have a massive table which has various departments in column C, services
supplied by the departments in column D and the period invoiced in column L.

When I sort by column C, D and L, I am able to calculate the Gross amount
that has been spent for the period by doing a basic SUM of Column Y.

What I want to achieve is to create some drop down options ( 3 drop down
cells) on a new work sheet that allow me to choose the value for column C,D &
L in 3 fields and for another cell to correctly go back to the previous
worksheet and to correctly sort and calculate the overall total value.

I'm not sure how to do this..... Can someone please give me assistance?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Need help creating formula to sum tables

Thank you JMB for your assistance and don't worry about the delay. You have
helped anyway as I achived what I needed. I will certainly read this website
as there is a long way before I will be able to do more complicated things on
my own. Thanks again!!

"JMB" wrote:

the -- converts a true/false value to its underlying numeric value ( 1 for
true, 0 for false). It also converts "text" numbers to numeric values that
can be used in arithmetic operations.

Yes, you can add additional criteria. Be sure the ranges are the same size
as those already in the formula.

One of the best write-ups on sumproduct is on Bob phillips site
Xldynamic.com. At the bottom left of the screen you should see a linke
regarding Multiple Condition Tests. It's well worth the time to read.

Sorry for delayed response - I'm out of town and have limited computer access.
"Piotr (Peter)" wrote:

Wow. It does work, however wyhy do I need "--" before the brackets, as the
original formula doesn't have such thing. Just as an explanation, Darren post
it this request on my behalf, which I am really grateful for.

Can I also use this formula to add other conditionals such payment received
or yet to receive just by adding extra range with additional criteria??

Thanks Piotr

"JMB" wrote:

If your dropdown options are in A1:C1, and your data is in a worksheet called
Table, try:

=Sumproduct(--(Table!C1:C100=A1), --(Table!D1:D100=B1),
--(Table!L1:L100=C1), Table!Y1:Y100)

change range references to suit.

"Darren Ingram" wrote:

Hi

I have a massive table which has various departments in column C, services
supplied by the departments in column D and the period invoiced in column L.

When I sort by column C, D and L, I am able to calculate the Gross amount
that has been spent for the period by doing a basic SUM of Column Y.

What I want to achieve is to create some drop down options ( 3 drop down
cells) on a new work sheet that allow me to choose the value for column C,D &
L in 3 fields and for another cell to correctly go back to the previous
worksheet and to correctly sort and calculate the overall total value.

I'm not sure how to do this..... Can someone please give me assistance?

Thanks

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
Creating Pivot Tables Andrew Excel Discussion (Misc queries) 0 January 31st 08 10:03 PM
creating a quote looking up from tables andyell Excel Worksheet Functions 1 June 12th 06 01:21 AM
Creating Tables From Multiple Worksheets carl Excel Worksheet Functions 0 January 3rd 06 09:14 PM
Creating tables Derek Charts and Charting in Excel 0 December 19th 05 04:55 PM
Creating League tables House Excel Worksheet Functions 0 March 15th 05 09:21 AM


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