#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Vlookup?

Hi Guys,

I have a sheet "sheet 1" which has data looking like as follows:

Store Number / Periods of year ----- Period 1 Period
2

201 X
W

202 Y
Z


Now, in "sheet 2" , I have two dropdown comboboxs, One to select store
numbers(Say 202) and one to select WEEKS (say week 1 or week 2 ....Not
Periods) of the year (Say week 2).

Now I need to put this logic somewhere , whereby say week 1 to week 4 belong
to period 1.

So when I select store 202 from first combobox and week 2 from second
combobox, I should get a result (in cell or textbox) of "Y" as week 2 is in
period 1.

How do I do this....? I would prefer not to alter data layout of sheet 1.

I will happy with both programming or simple excel lookup solution
suggestions.

Please help..

Veeraan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Vlookup?

Hi,

- Set the LinkCell of the 2 comboboxes to 2 cells:
a. If a combobx from the Control Toolbox toolbar, then Right-click the
combo, choose Properties from the popup menu, then set the LinkedCEll
property to, say, Sheet2!A1 fot the store combo, and say, Sheet2!A2 fo the
week combo.
b. if you are using a Combobox from the Forms toolbar, it is a similar
setup.
This way, everytime the user changes choice, it is automatically reflected
to these 2 cells.

- Now, assuming the table is in Sheet1!A1:M50, in a cell of sheet 2, enter:
=INDEX(Sheet1!A1:M50
,MATCH(A1,Sheet1!A1:A50,0)
,MATCH(A2,Sheet1!A1:M1,0))

--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"veeraan" wrote:

Hi Guys,

I have a sheet "sheet 1" which has data looking like as follows:

Store Number / Periods of year ----- Period 1 Period
2

201 X
W

202 Y
Z


Now, in "sheet 2" , I have two dropdown comboboxs, One to select store
numbers(Say 202) and one to select WEEKS (say week 1 or week 2 ....Not
Periods) of the year (Say week 2).

Now I need to put this logic somewhere , whereby say week 1 to week 4 belong
to period 1.

So when I select store 202 from first combobox and week 2 from second
combobox, I should get a result (in cell or textbox) of "Y" as week 2 is in
period 1.

How do I do this....? I would prefer not to alter data layout of sheet 1.

I will happy with both programming or simple excel lookup solution
suggestions.

Please help..

Veeraan

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
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Which is faster: VLOOKUP-worksheet or VB-array VLOOKUP? erikhs[_20_] Excel Programming 1 August 6th 06 06:18 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM


All times are GMT +1. The time now is 02:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"