offset match with multiple criteria

WelshBL

New Member
Joined
May 3, 2017
Messages
15
hiyas all,
Ive looked around the searches and cant seem to find anything that does what I am looking for
basically I have a cell with model of car i.e. focus and a cell which recognises if standard metallic or dualtone paint is selected with a 1 2 or 3 number produced from formula

the table I have is roughly
model - type - colour
focus - 1 - red
focus - 1 - white
focus - 1 - black
focus - 2 - red

and so on

I can get the combobox in a userform to read a singlular column and display the colour with
=OFFSET(ColourStart,MATCH(location of model,ColourModel,0)-1,2,COUNTIF(ColourModel,location of model),1)

but I want to get it to read
the model and type so it only displays the list of colours for either standard (1) metallic(2) or dual tone (3)

I have tried to change formula to a variation on the match
=OFFSET(ColourStart,MATCH(1,(ColourModel=location of model)*(ColourType=Location of paint type),0)-1,2,COUNTIF(ColourModel,location of model),1)

but just keep getting an error

can anyone point me in the right direction?

Thanks guys n gals
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Maybe something like this?
The formula in F5 is an array formula and must be entered with CTRL-SHIFT-ENTER.
Drag formula down as needed.
Excel Workbook
ABCDEF
1modeltypecolourModelfocus
2focus1redtype1
3focus1white
4focus1black# of Colors3
5focus2redcolorsred
6white
7black
8
Sheet
 
Upvote 0
the formula needs to be in a combobox in a userform so it will only list the drop down of the colours available for that specific one
i cant test at the moment as not at my work pc but would that formula work as rowsource in that combobox?
 
Upvote 0
this didnt work in a row source of the combobox im still back to square one, can anyone give me an idea on what i may be looking for using the =offset Match for 2 vertical criteria
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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