Combo box to extract cell address

rmccafferty

Board Regular
Joined
Jul 16, 2009
Messages
60
Any knowledge of combo boxes I have is from Access, which seems a bit different that in Excel.

What I need to do:
In short copy a selected row of data into a different row. The destination row will always be the same, but the originating row will vary by the selection in the drop down box. This destination row is the source data for analyses done in a complex set of calculations in another part of the worksheet that is used for a report. (All of the calculations are easy, but there are a lot of them).

Using a standard location for the data being analyzed makes the coding of the formulas/calculations easier and it allows the viewer to see the raw data easily when looking at the analysis. I do not want to change that part of the process.

And I have to admit, I don't yet know what the linking cell is in the properties, but I should be able to find that easily.

In the first draft of this worksheet, I had the user enter a row number into a cell, the row of the data they want to see in the analysis section. Then, using that row number, a macro would copy the row selected and paste it into the destination row. It worked quite well.

Now they want to use a drop down box (combo box actually) to make their selection and choose the name of the institution being analyzed.

I suppose I could just let them do that and then use a Lookup function to determine the row to copy. That seems like it might be a bit complicated to do in a macro. First find the name they selected and make the cell active, then capture the row number in a macro, and finally use the code I have now in place to copy that row of data to the destination row.

Instead, is there a way to let them select the name they want, show that name in the selection box, but return the row number or cell address in an adjacent cell?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,617
Messages
6,179,915
Members
452,949
Latest member
beartooth91

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