Copy information from another sheet to drop-down menu

mc_mice

New Member
Joined
Dec 20, 2005
Messages
6
Hi,

I would like to copy information from another sheet to drop-down menu in another sheet. It seems that I cannot choose source from another sheet and reference it in any way.

If possible the copying could be dynamic/automatic, so that when there is additions to the source, drop-down menu is updated also.

Thanks in advance.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
If your dropdown is from Data Validation, name the list eg MyList using Insert|Name|Define. Then you can use:

=MyList

in the DV Source box.

Us a dynamic range reference if you want the list to be updated automatically when items are added.
 
Upvote 0
This worked great.

But... Now I have to it so that implement this to the following :

=SUM((COUNTIF(INDIRECT("sheet1!" & A1 & "3:" & A1 & "10");"1"));COUNTIF(INDIRECT("sheet1!" & A1 & "3:" & A1 & "10");"0"))

so that when I choose from drop-down menu first line, it will iplement to the previous formula the right column where it will count..

Thanks again
 
Upvote 0
I noticed that I didn´t inform my problem correctly.

- I have 1 pull-down menu that takes information from another sheet
- I have numerous formulas that count the statistics from that same sheet

I would like to have so that when I choose from the pull-down menu some heading, the formulas will automatically change to calculate the statistics from that same column the heading was taken.
 
Upvote 0
Please give an example of what appears in your list, how you would want that to be used in a formula.

In the meantime, I will try to guess what you are trying to do.

Suppose that A2:C10 on Sheet1 contains:

France Germany USA
Data Data Data
Data Data Data
Data Data Data
Data Data Data
Data Data Data
Data Data Data
Data Data Data
Data Data Data

and that A1 on some other sheet contains Data Validation with the list France, Germany and USA. This formula:

=SUM(INDEX(Sheet1!A3:C10,0,MATCH(A1,Sheet1!A2:C2,FALSE)))

will sum the values in the column for Germany. That's because setting the row_num or column_num arguments to zero results in INDEX returning the array of values for the entire column or row.

So the formula you posted could be written like this:

=SUM(COUNTIF(INDEX(Sheet1!A3:C10,0,MATCH(A1,Sheet1!A2:C2,FALSE)),"1"),COUNTIF(INDEX(Sheet1!A3:C10,0,MATCH(A1,Sheet1!A2:C2,FALSE)),"0"))

Note that my formulas use the comma as the argument separator and you will need to change them to semicolons.
 
Upvote 0
This worked great! As you said had to replace commas with semicolons but everything else worked like it should.

Thank you for the help
 
Upvote 0

Forum statistics

Threads
1,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top