If , match , vookup . I think .

Sunline

Well-known Member
Joined
Oct 6, 2007
Messages
701
Office Version
  1. 2016
Platform
  1. Windows
Hello all , have looked hard but cannot find answer on here .
In col A there are words , Fast , Good , Dead , Soft , Heavy .
In col B there are the same words as above .
I would like too firstly look in col A , example , if Fast is there then look in col B and if fast , good or dead is there then vlookup sheet2 range CC2:DD999 .
I have conanceated these and given a points scale on the vlookup sheet .
I use vlookup because i am able too change these at will without having to change formular over 170,000 rows .
Hope this makes sence , thanks .
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi Kevin
What part of the Mr Excel HTML Maker are you having trouble with ?
Once you've downloaded it.
Highlight a sample of your data.
Select the MrExcel HTML Menu
Select the 2nd Item from the dropdown
Now come back to this forum and select paste.

It looks like computer code, but once you submit it looks like Excel again.
 
Upvote 0
Hi guys , ok i finally mastered a hmtl maker , thanks for your feedback on that .
So that brings me back too trying too ask this correctly now .
Cols DB and IJ have data which relates to each other , so what happens in DB2 corresponds with IJ2 , same for cols DC to IK up too DF too col IN .
Would like function too ,
Look too see if cell J2 contains Fast , Good , Dead , if it does then look at cell IJ2 for the same , if it does then look in DB2 and apply vlookup .
If these words werent in col IJ2 or cells were blank then always return zero 0 .
Col J is always populated but as per this example there can be blank cells in cols DB to IN . .
Using this example looking at col J the first 5 say heavy , there were 125 of these down col J so referencing using this small block wont work if that makes sence . I have cut this to fit on here only .
Thanks .
Excel Workbook
JDBDCDDDEDFIJIKILIMIN
1ConPL5PL4PL3PL2PL1Con5Con4Con3Con2Con1
2Heavy846310=DeadDeadSlowGoodGood
3Heavy****9****Heavy
4Heavy**********
5Heavy64951HeavyGoodHeavyGoodSlow
6Heavy***79***GoodGood
7Fast6117118DeadHeavyHeavyHeavyGood
8Fast64743GoodSlowSlowDeadGood
9Fast84631=DeadDeadSlowGoodGood
10Fast****9****Heavy
11Good**1254**SlowDeadGood
12Good**********
13Good***79***GoodGood
14Good5117118DeadHeavyHeavyHeavyGood
15Dead846311=DeadDeadSlowGoodGood
16Dead****9****Heavy
17Dead**1254**SlowDeadGood
18Slow**********
19Slow64951HeavyGoodHeavyGoodSlow
Sheet1
 
Upvote 0
Would like function too, Look too see if cell J2 contains Fast, Good, Dead, if it does then look at cell IJ2 for the same, if it does then look in DB2 and apply vlookup.

If these words weren't in col IJ2 or cells were blank then always return zero.

The formula below will do what you ask above...

=IF(AND(OR(J2={"Fast","Good","Dead"}),OR(IJ2={"Fast","Good","Dead"})),VLOOKUP(DB2,$A$2:$C$100,2,0),0)

Cols DB and IJ have data which relates to each other, so what happens in DB2 corresponds with IJ2, same for cols DC to IK up too DF too col IN.

Not all that sure what you want done with the quote above. You now seem to be saying you want to check DC2 against IK2, DD2 against IL2, etc.

If so, do you now want a vlookup against DC2, DD2, etc? Where do you want all these results? Is this all in one cell or in five different cells?

I'm sorry but I just need a little more insight into what you are trying to accomplish.
 
Upvote 0
Hi Jeff , no im not wanting to do anything as per my quote .
I tried your function and am getting either 0 or #N/A in all cells .

Not sure why myself , have checked thoroughly for correct cols and ranges etc .
=IF(AND(OR(J2={"Fast","Good","Dead"}),OR(IV2={"Fast","Good","Dead"})),VLOOKUP(DF2,Sheet2!$A$2:$B$43,2,0),0)

The Vlookup is on sheet 2 which i tried putting in adding too your function you have last supplied .
Thanks .
 
Upvote 0
I would be happy to take a look at your workbook. If so, PM me your e-mail or load in to a download site like Box.net.
 
Upvote 0
Ok got this to work .
=IF(AND(OR(J2={"Fast"}),OR(JH2={"Fast","Good"})),VLOOKUP(DF2,Sheet2!$A$2:$B$43,2,0),0)

I know the cols have changed from my post , "Hi guys , ok i finally mastered a hmtl maker"

Adjust your cols to suit if viewing .

Thanks both Jeff and Michael for your help with this function .
 
Upvote 0
Hi Kevin,

In EO2 try...

=IF(AND(J2="Fast",OR(JH2={"Fast","Good"}),AND(BY2>=9999.99,BY2<20000),AND(DZ2>=0.5,DZ2<2.6),AL2="PQ"),VLOOKUP(DF2,Sheet2!$A$2:$B$43,2,0),0)
 
Upvote 0
Hello Jeff , how would i take this part out of this formular AL2="PQ" and still get it too do the rest , just giving myself another option .

=IF(AND(J2="Fast",OR(JH2={"Fast","Good"}),AND(BY2>=9999.99,BY2<20000),AND(DZ2>=0.5,DZ2<2.6),AL2="PQ"),VLOOKUP(DF2,Sheet2!$A$2:$B$43,2,0),0)

Thanks .
 
Upvote 0
Hi Kevin,

Remove this...AL2="PQ"

=IF(AND(J2="Fast",OR(JH2={"Fast","Good"}),AND(BY2>=9999.99,BY2<20000),AND(DZ2>=0.5,DZ2<2.6)),VLOOKUP(DF2,Sheet2!$A$2:$B$43,2,0),0)

The key...check your opening brackets against the closing brackets...Where there is a opening there must be a closing

and

Watch the color of the brackets which should help you see your pairs of brackets
 
Upvote 0

Forum statistics

Threads
1,225,149
Messages
6,183,188
Members
453,151
Latest member
Lizamaison

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