I need help : combobox matter

ziadc

New Member
Joined
Apr 6, 2013
Messages
3
hi,

This is my first question in this forum , i would like to create a combobox that contain let's say january,february,march,april this combobox is available for each cell in L colum i would like to fill a number of days for each above months in another cell E colum , for exemple when i choose january from combobox in L8 colum 31 must be automaticaly filled in E8 colum,
when selecting february in L9 28 will appear in E9 colum .......etc

I'm sorry for my bad english , i hope somone will help me to resolve the above question and thanks for advance.
 
Last edited:

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,449
  • Select the cells in column L you want to have a month drop down list
  • Select from the menu Data\Validation
    • Allow: List
    • Source: January,February,March,April
    • OK
  • Put this formula in column E8 and drag down
=IF(L8="","",DAY(EOMONTH(L8&" 1, "&YEAR(TODAY()),0)))
 

ziadc

New Member
Joined
Apr 6, 2013
Messages
3
Thanks for the prompt replay, actually it was my fault the example i have given was just a general exemple for what i need to do but what i really intend to do is fill the combobox with products available in my shop : trouser,shirts,pants,shoes and in E8 colum i would like to enter the cost of each item automatically for example when i select trouser the number 185 will be displayed automatically , shirts ----> 86 , pants ----->120 , shoes ---->90 , again Alphafrog i'm sorry for wasting your time and not being clear from the beginning and thank you in advance

note :i have already fill the list :trouser,shirts,pants,shoes by following your above method with success.
 
Last edited:

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,449
No problem but your description is still a bit generalized. Specifics are needed to give a complete reply. I assume you have a complete cost list located somewhere?

If the item-cost list is in columns A:B, then this will lookup the cost for the selected item from L9
=IF(L9="","",INDEX(B:B,MATCH(L9,A:A,0)))
 

ziadc

New Member
Joined
Apr 6, 2013
Messages
3
alphafrog thank you very much, it works and thanks to this wonderful forum.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,561
Messages
5,832,512
Members
430,138
Latest member
silver_john

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
Top