formula for drop down menu?

plpl78

Board Regular
Joined
May 8, 2009
Messages
87
IN cell G1 i have a number that changes every two weeks currently that number is eleven.

In A19 i have a drop down menu starting at one and going to twenty six.

Is there a way i can set the drop down menu to start at the current number based off the number in G1?

Example of the data in G1 is five then when i click on the drop down in A19 it would start at five instead of 0

Thank you for all your help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi,

Since A19 has a drop down, that means you have DV set to "In-cell dropdown" referencing a Range in the formula box.
In my sample below H1:H26 is the range reference for the DV "In-cell dropdown", set H1=G1, then copy H2 formula down to H26:


Book1
GH
155
26
37
48
59
610
711
812
913
1014
1115
1216
1317
1418
1519
1620
1721
1822
1923
2024
2125
2226
2327
2428
2529
2630
Sheet64
Cell Formulas
RangeFormula
H1=G1
H2=H1+1
 
Upvote 0
Not sure i explained this right. When i go into A19 and i hit the drop down menu the options i have go from 0 to 26. In G1 it says its week 11 so i would select 11 in the drop down menu

What i want is for it to be set up so the drop down menu option would start what ever week is listed in G1

So if i hit the drop down menu it would start at 11 and not 0. On 6-10-2018 it will be week 12 so G1 will show 12 then i would want the drop down menu to start at 12. Thanks for the help by the way :)
 
Upvote 0
Not sure i explained this right. When i go into A19 and i hit the drop down menu the options i have go from 0 to 26. In G1 it says its week 11 so i would select 11 in the drop down menu

What i want is for it to be set up so the drop down menu option would start what ever week is listed in G1

So if i hit the drop down menu it would start at 11 and not 0. On 6-10-2018 it will be week 12 so G1 will show 12 then i would want the drop down menu to start at 12. Thanks for the help by the way :)

That's EXACTLY what my suggestion in Post #2 will do.
 
Upvote 0
Assuming that range H1:H26 is populated with numbers from 1 to 26, try using the following formula in the Source field for DV:

=OFFSET($H$1:$H$26,$G$1-1,0,27-$G$1,1)
 
Upvote 0
i think the issue is how i have it set up the data being used in the drop down menu comes from sheet 2 cells C2 to c27
 
Upvote 0
That's just a matter of referencing G1 from Sheet2 C2:


Book1
G
111
Sheet1



Book1
C
211
312
413
514
615
716
817
918
1019
1120
1221
1322
1423
1524
1625
1726
1827
1928
2029
2130
2231
2332
2433
2534
2635
2736
Sheet2
Cell Formulas
RangeFormula
C2=Sheet1!G1
C3=C2+1
 
Upvote 0
Ok on sheet 2 in cell C12 i did =Sheet1!G1 and that gave me 11 which is what is should be then in C13 i did =C13+1 and that gave me 12 which is also right

But when i go to sheet one and hit the drop down arrow in a19 the dropdown still shows me the first number in the list which is 0

I must be doing something wrong lol
 
Last edited:
Upvote 0
Wait a minute, does your DV source start at C2 or C12 of Sheet2?
 
Upvote 0
on Sheet 2 is starts a C1 which is blank then goes to C27 which is twenty six then i named the range so i could use it in the drop downs i have on sheet one in column a
 
Upvote 0

Forum statistics

Threads
1,223,891
Messages
6,175,229
Members
452,621
Latest member
Laura_PinksBTHFT

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