Min and OR formula Help

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
564
Office Version
  1. 2016
Platform
  1. Windows
I have the following formula in cell G22 and it works fine and provides the correct answer


IF(B22="","",IF(AND(V22<>"",W22<=6,W22<>""),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE),IF(AND(V22<>"",W22>6,W22<=10,W22<>""),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE)*0.98,IF(AND(V22<>"",W22>10,W22<>""),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE)*0.95,VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)))))

I want to revise the formula so that if the value in B22 is equal to extra heavy truck or truck tractor I want the minimum to be 2,500

I tried revising it to this but it's not working the way I want

IF(B22="","",IF(AND(V22<>"",W22<=6,W22<>""),IF(MIN(OR(B22="Extra Heavy Trucks-Over 45,000 lbs",B22="Truck-Tractors"),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE),2500),IF(AND(V22<>"",W22>6,W22<=10,W22<>""),IF(MIN(OR(B22="Extra Heavy Trucks-Over 45,000 lbs",B22="Truck-Tractors"),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE)*0.98,IF(AND(V22<>"",W22>10,W22<>""),VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)*VLOOKUP(V22,Indicated!$I$93:$J$99,2,FALSE)*0.95,VLOOKUP(A22,Indicated!$Z$8:$AD$56,5,FALSE)*VLOOKUP(B22,Indicated!$I$83:$J$89,2,FALSE)))))),2500))

I am getting an error.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks for all of the views. I had to redesign the template so I was able to solve my issue above.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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