Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 5
Default How to get SUM of range of cells based on two separate dropdown selections.

I have 2 dropdowns (A2 and B2) on sheet 1 that both reference cells B2 through B75 on sheet 2. I want to be able to do a SUM of all cells in the B column of sheet 2 between what I select in dropdowns A2 and B2.

I can provide examples if this is not clear enough.

TIA
  #2   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by Bretai2k View Post
I have 2 dropdowns (A2 and B2) on sheet 1 that both reference cells B2 through B75 on sheet 2. I want to be able to do a SUM of all cells in the B column of sheet 2 between what I select in dropdowns A2 and B2.
I can provide examples if this is not clear enough.
TIA
<<<<< HELP from BRAZIL

Dear Bretai2k, Good Afternoon.

Take a look at it and tell me if it worked for you.

=SUM(INDIRECT(CONCATENATE("Plan2!$B",MATCH(A2,Plan 2!$B$2:$B$75,0)+1,":$B",MATCH(B2,Plan2!$B$2:$B$75, 0)+1)))

Fell free to ask anything about your question.
Have a nice day.
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil
  #3   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by Mazzaropi View Post
<<<<< HELP from BRAZIL

Dear Bretai2k, Good Afternoon.

Take a look at it and tell me if it worked for you.

=SUM(INDIRECT(CONCATENATE("Plan2!$B",MATCH(A2,Plan 2!$B$2:$B$75,0)+1,":$B",MATCH(B2,Plan2!$B$2:$B$75, 0)+1)))

Fell free to ask anything about your question.
Have a nice day.
Concatenate might be what I am looking for, but I'm trying to understand what the Plan2 are referencing. When I plug it in, it asks me to update values and then I get #N/A? for the two Plan2s that are referenced after the MATCH function.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default How to get SUM of range of cells based on two separate dropdown selections.

On Tue, 8 May 2012 15:30:30 +0000, Bretai2k wrote:


I have 2 dropdowns (A2 and B2) on sheet 1 that both reference cells B2
through B75 on sheet 2. I want to be able to do a SUM of all cells in
the B column of sheet 2 between what I select in dropdowns A2 and B2.

I can provide examples if this is not clear enough.

TIA



Try: =SUM(INDIRECT(A2&":"&B2))

(Assumes when you write "between" you want to also include the cells identified in A2 and B2).
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default How to get SUM of range of cells based on two separate dropdown selections.

On Tue, 08 May 2012 21:25:19 -0400, Ron Rosenfeld wrote:

On Tue, 8 May 2012 15:30:30 +0000, Bretai2k wrote:


I have 2 dropdowns (A2 and B2) on sheet 1 that both reference cells B2
through B75 on sheet 2. I want to be able to do a SUM of all cells in
the B column of sheet 2 between what I select in dropdowns A2 and B2.

I can provide examples if this is not clear enough.

TIA



Try: =SUM(INDIRECT(A2&":"&B2))

(Assumes when you write "between" you want to also include the cells identified in A2 and B2).


I missed that the data and dropdowns are on separate sheets.

If your formula is on Sheet 1, then use this:

=SUM(INDIRECT("Sheet2!"&A2&":"&B2))

If your formula is not on Sheet1, try this:

=SUM(INDIRECT("Sheet2!"&Sheet1!A2&":"&Sheet1!B2))


  #6   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by Bretai2k View Post
Concatenate might be what I am looking for, but I'm trying to understand what the Plan2 are referencing. When I plug it in, it asks me to update values and then I get #N/A? for the two Plan2s that are referenced after the MATCH function.
Dear Bretai2k, Good Evening.

I´m sorry!
As my Excel is in Portuguese the sheet here is called Plan.
I forgot to change this for you.

Try this one now.

=SUM(INDIRECT(CONCATENATE("Sheet2!$B",MATCH(A2,She et2!$B$2:$B$75,0)+1,":$B",MATCH(B2,Sheet2!$B$2:$B$ 75, 0)+1)))

Have a nice day.
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil
  #7   Report Post  
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by Mazzaropi View Post
Dear Bretai2k, Good Evening.

I´m sorry!
As my Excel is in Portuguese the sheet here is called Plan.
I forgot to change this for you.

Try this one now.

=SUM(INDIRECT(CONCATENATE("Sheet2!$B",MATCH(A2,She et2!$B$2:$B$75,0)+1,":$B",MATCH(B2,Sheet2!$B$2:$B$ 75, 0)+1)))

Have a nice day.
Thank you so much for your help thus far. I'm still getting #N/A when it gets to the Sheet2! portion of each Match function. The actual range of cells I want to validate against is on Sheet1, cells B2 through B75, while the function is checking the start and end of the range on sheet 2, cells A2 and B2.
  #8   Report Post  
Senior Member
 
Location: Belo Horizonte, Brazil
Posts: 170
Thumbs up

Quote:
Originally Posted by Bretai2k View Post
Thank you so much for your help thus far. I'm still getting #N/A when it gets to the Sheet2! portion of each Match function. The actual range of cells I want to validate against is on Sheet1, cells B2 through B75, while the function is checking the start and end of the range on sheet 2, cells A2 and B2.
<<<<< HELP from BRAZIL

Dear Bretai2k, Good Morning.

It´s very important always, the user attach here a worksheet with an example about your question.
It´s quicker, easier and all the answers are effective on the solution.

At first time you said:
"...Originally Posted by Bretai2k
I have 2 dropdowns (A2 and B2) on sheet 1 that both reference cells B2 through B75 on sheet 2. I want to be able to do a SUM of all cells in the B column of sheet 2 between what I select in dropdowns A2 and B2.
I can provide examples if this is not clear enough.TIA
..."

Then, the formula was built pointing to these cells.
=SUM(INDIRECT(CONCATENATE("Sheet2!$B",MATCH(A2,She et2!$B$2:$B$75,0)+1,":$B",MATCH(B2,Sheet2!$B$2:$B$ 75, 0)+1))

NOW, you´re saying this:
"...The actual range of cells I want to validate against is on Sheet1, cells B2 through B75, while the function is checking the start and end of the range on sheet 2, cells A2 and B2...."
Then you need to invert the formula.

Put on any cell on SHEET2 this fórmula:
=SUM(INDIRECT(CONCATENATE("Sheet1!$B",MATCH(A2,She et1!$B$2:$B$75,0)+1,":$B",MATCH(B2,Sheet1!$B$2:$B$ 75, 0)+1))

Is this working for you now?
__________________
I hope it can help you.

Best regards,
Marcilio Lobão
---------------------------
Belo Horizonte, Brazil
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
Filter range based on results of multiple selections in a listbox Mctabish[_4_] Excel Programming 0 January 9th 09 07:57 AM
multiple dropdown selections Oct1196 Excel Worksheet Functions 3 September 6th 07 05:38 PM
Help with dropdown boxes and preset selections Keving Excel Programming 2 July 7th 06 06:12 PM
How can I allow users to make multiple selections from a dropdown. Liz Excel Worksheet Functions 0 February 17th 05 05:21 AM
Dropdown Selections in Excel - creating and choosing Abi Excel Worksheet Functions 2 January 7th 05 02:27 AM


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