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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
  • 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)))
 
Upvote 0
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:
Upvote 0
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)))
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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