don't know which function to use

jgperez78

New Member
Joined
Jul 23, 2014
Messages
13
hi mr. excel, my apologies but i really cannot find which function i should use. this is the string of logic that i am trying to make a formula for. if A2 is <0.04 and B2 is "D-F" and C2 is "IF-VVS" then A2 should be multiplied by 1250. i know its a lot but i just need to know how to make a formula for this one. please help. thank you SO much in advance.
 
yes you did:biggrin: thank you so much, i was actually dreading that you would have been fed up with me. thanks again.
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
No worries...
When you've read a few threads on this forum, you kinda get a feel for what the poster is gonna throw at you !!
Sometimes there are a number of different ways of doing things.

Glad it worked...(y)
 
Upvote 0
hi michael, sorry but i need help again. i'm having trouble with the column index number, on the formula you gave me it is only for 2 columns and now i have multiple. can't figure out, please save me again. Thank you.
WEIGHT (ct)COLORCLARITYPRICE in USD$/ct0.01 - 0.030.04 - 0.070.08 - 0.140.15 - 0.170.18 - 0.220.23 - 0.290.3 - 0.39
0.01D - FIF - VVS12.5$1,250.00D - FIF - VVS1250115012001350150019002100
0.05G - HVS40$800.00G - HIF - VVS100090010001200135017002000
0.09I - JIF - VVS67.5$750.00I - JIF - VVS7507508501000110014001900
0.16K - LIF - VVS78.4$490.00K - LIF - VVS49051067075090011801800
0.20M - NIF - VVS72$360.00M - NIF - VVS3603804505507509501700
0.25D - FVS250$1,000.00D - FVS100090010001220130017001600
0.35D - FVS350$1,000.00G - HVS8508008801020115014501500

<tbody>
</tbody>

<tbody>
</tbody>
 
Last edited:
Upvote 0
I don't have Excel at the moment, so can't help, but a couple of points to note
1. A standard VLOOKUP won't work in this case
2. The Column Index in a modified VLOOKUP will require the use of INDEX MATCH to ID the column where the correct data sits
3. Your headings for your weight ranges will need to change to numerical data, ie, 0.01-0.03 is not an appropriate numerical data, it will have to be something like 0.030 or 0.040, etc
4. the match formula won't work on the data as mentioned in note 3
 
Upvote 0
Hi Michael, i guess the only thing i can do is change the formula accordingly per row to a specified column. Like if one row specifies from 0.01 - 0.03 then the lookup will be from column J-K and the next row will be from 0.04 - 0.07 and the lookup will be from column L-M. Thanks a lot again for the notes. Will try to work on it if it will give the result i want. But will continue to look for ways to modify the formula that will be easier to follow for the user who didn't make the worksheet. I guess i will just have to specify that one can only enter specific weights per specific row as not to have problems with the result based on the formula. Thank you SO very much, as always.
 
Upvote 0
just got back to my computer
Here's an example, of what you may need to modify your worksheet to look like !!
You can see how changing your needs affects the layout AND formulae

Excel 2010
ABCDEFGHIJKLM
1WEIGHT (ct)COLORCLARITYPRICE in USD$/ct00.0390.0790.1490.1790.2290.2990.399
20.08D - FIF - VVS12.51150D - FIF - VVS1250115012001350150019002100
30.05G - HVS40850G - HIF - VVS100090010001200135017002000
40.09I - JIF - VVS67.5750I - JIF - VVS7507508501000110014001900
50.16K - LIF - VVS78.4670K - LIF - VVS49051067075090011801800
60.2M - NIF - VVS72550M - NIF - VVS3603804505507509501700
70.25D - FVS2501300D - FVS100090010001220130017001600
80.35D - FVS3501600G - HVS8508008801020115014501500
Sheet2
Cell Formulas
RangeFormula
E2{=VLOOKUP(CONCATENATE(B2,C2),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A2)),ABS($F$1:$M$1-A2),0),0)}
E3{=VLOOKUP(CONCATENATE(B3,C3),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A3)),ABS($F$1:$M$1-A3),0),0)}
E4{=VLOOKUP(CONCATENATE(B4,C4),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A4)),ABS($F$1:$M$1-A4),0),0)}
E5{=VLOOKUP(CONCATENATE(B5,C5),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A5)),ABS($F$1:$M$1-A5),0),0)}
E6{=VLOOKUP(CONCATENATE(B6,C6),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A6)),ABS($F$1:$M$1-A6),0),0)}
E7{=VLOOKUP(CONCATENATE(B7,C7),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A7)),ABS($F$1:$M$1-A7),0),0)}
E8{=VLOOKUP(CONCATENATE(B8,C8),$F$2:$M$8,MATCH(MIN(ABS($F$1:$M$1-A8)),ABS($F$1:$M$1-A8),0),0)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
hi michael, now i understand what you mean. i should keep reading the forums you have here. its almost the same as going to school :), thanks teacher.
 
Upvote 0
hi michael, just noticed, looking at the excel sheet E3 should be 800 (based on the criteria 0.05,H1 and G - HVS which would be H8), but based on the formula it gave G8 which would be looking at the wrong weight. did i misunderstood again?:confused:
 
Upvote 0
Looks Ok to me....keeping in mind the B3 & C3 equate to G - HVS in column F....not G - HIF - VVS as you are probably reading !!
 
Upvote 0
yes it is F8 (G - HVS) but based on its weight 0.05, it should take the price of H8 (coz its under 0.079 but above 0.039)
 
Upvote 0

Forum statistics

Threads
1,215,534
Messages
6,125,374
Members
449,221
Latest member
chriscavsib

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