# Lookup question

#### st471438

##### New Member
Hi Everyone</SPAN></SPAN>

I tried to find similar problem and solutions by searching the older posts in forums but I didn’t find anything so I apologize if this is a repeated question but I would really appreciate any answer and help.</SPAN></SPAN>

1) I have a data set updated every week – left hand side it will have City names (Let’s say in Column A) and all right hand columns will include Week 1, Week 2 etc. I am planning to create a simple dashboard type of report that contains combo box of City names and when user selects the city, the numbers from the data set for the last available week displays. I know this can be achieved by using Index/Offset/Match – just not sure how to use the formula as nested formula.</SPAN></SPAN>

My goal is whenever the latest week data is available, I can just simply paste that data in data set which will then display that number as last data set number corresponding to the city has been selected through combo box. </SPAN></SPAN>

2) While creating this – I wish to include two combo box – one to select City name and another to select Week – is it possible? If so can anyone please provide me both formulas ? for my Question 1 and Question 2</SPAN></SPAN>

Thank you so very much in advance.</SPAN></SPAN>​

### Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,

Assuming your list of city names is constant, perhaps try something like this:
Excel Workbook
ABCDE
1CityWeek 1Week 2Week 3Week 4
2A14710
3B25811
4C36912
5
6Select CityC
7Select WeekWeek 4
Sheet1
Excel 2010
Cell Formulas
RangeFormula
B8=INDEX(2:4,MATCH(B6,A2:A4,0),MATCH(B7,1:1,0))

Hi,

Assuming your list of city names is constant, perhaps try something like this:

Sheet1
ABCDE
1CityWeek 1Week 2Week 3Week 4
2A14710
3B25811
4C36912
5
6Select CityC
7Select WeekWeek 4

</TBODY>
Excel 2010

Worksheet Formulas
CellFormula
B8=INDEX(2:4,MATCH(B6,A2:A4,0),MATCH(B7,1:1,0))

</TBODY>

<TBODY>
</TBODY>

Hi - sorry I should had to mention that I am using 2003 version at work.

That should work in earlier versions as well (including 2003).

Not working

Try =INDEX(\$B\$2:\$E\$4,MATCH(B6,A2:A4,0),MATCH(B7,1:1,0))

Last edited:
Still keep giving N#A

Try =INDEX(\$B\$2:\$E\$4,MATCH(B6,\$A\$2:\$A\$4,0),MATCH(B7,\$B\$1:\$E\$1,0)). Sorry should have checked

Try again =INDEX(\$B\$2:\$E\$4,MATCH(B7,\$A\$2:\$A\$4,0),MATCH(B6,\$B\$1:\$E\$1,0)). Sorry should have checked

Replies
1
Views
117
Replies
0
Views
192
Replies
5
Views
550
Replies
1
Views
210
Replies
8
Views
621

1,203,487
Messages
6,055,713
Members
444,810
Latest member
ExcelMuch

### 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.

### Which adblocker are you using?

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

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