Nested IF / OR / VLOOKUP

leightx

New Member
Joined
Jan 3, 2017
Messages
10
I'm trying to create a product page that will return a list of products based upon questions that a customer answers (or that the sales rep fills in). Basically I'm trying to return a value based on the answer to 2 questions (pulled from another sheet), which are in B and C, and the result will go into D (# needed).

itemquestion# of stations# needed
classroom pipets, singleclassroom102
professional pipets, singleclassroom100
classroom pipets, set of 8classroom101
professional pipets, set of 8classroom100
classroom pipets, singleprofessional50
professional pipets, singleprofessional55
classroom pipets, set of 8professional50
professional pipets, set of 8professional50

<tbody>
</tbody>
















There are 2 scenarios above that should hopefully illustrate what I'm trying to do! The customer can choose between 2 different models - classroom or professional. If they choose classroom, then the professional pipets need to have a quantity of 0. Additionally, if they need more than 7, then the set of 8 model should reflect that - they get 1 quantity of the bulk set, plus the remainder in singles.

In the 2nd scenario, the customer wants professional pipets, but only 5. So no classrooms are selected, and only 5 singles.

I tried doing a lookup table for this to make life easier, but I'm really having trouble wrapping my brain around how to do a VLOOKUP within an IF fxn, with an OR! Or maybe there is an easier solution that I don't know about (very very likely)!?

Thanks in advance!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Re: Need help with nested IF / OR / VLOOKUP

itemquestion# of stations# needed
classroom pipets, singleclassroom102
professional pipets, singleclassroom100
classroom pipets, set of 8classroom101
professional pipets, set of 8classroom100
classroom pipets, singleprofessional50
professional pipets, singleprofessional55
classroom pipets, set of 8professional50
professional pipets, set of 8professional50
I choose classroom
so all that is available to me is classroom pipettes single or classroom pipettes set of 8
say I want 10 pipettes
so I need a pack of 8 and 2 singles
col E
is this the situation ?
selectclassroomneeded10
itemquestion# of stations# neededCHOICEquantity in pack
classroom pipets, singleclassroom102yes1
professional pipets, singleclassroom100
classroom pipets, set of 8classroom101yes8
professional pipets, set of 8classroom100
classroom pipets, singleprofessional50
professional pipets, singleprofessional55
classroom pipets, set of 8professional50
professional pipets, set of 8professional50
large packs1
singles2
columns E to H are automated

<colgroup><col><col><col><col><col><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0
Re: Need help with nested IF / OR / VLOOKUP

How about
Excel 2013 32 bit
ABCD
1itemquestion# of stations# needed
2classroom pipets, singleprofessional50
3professional pipets, singleprofessional55
4classroom pipets, set of 8professional50
5professional pipets, set of 8professional50

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
New

Worksheet Formulas
CellFormula
D2=IF(B2="classroom",C2-D4*8,0)
D3=IF(B3="professional",C3-D5*8,0)
D4=IF(B4="Classroom",IF(C4>8,FLOOR(C4/8,1),0),0)
D5=IF(B5="professional",IF(C5>8,FLOOR(C5/8,1),0),0)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Re: Need help with nested IF / OR / VLOOKUP

Glad to help & thanks for the feedback
 
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