Comination formula with IF and VLOOKUP, returning opposite results

Jessicam3

New Member
Joined
Apr 26, 2023
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have a complex formula going and for some reason the only way it returns the correct answer on the last portion of the formula is if the greater/less than sign is flipped around? I enlarged the specific sign that I have currently have flipped around so the formula works, but the way it should read is that if the vlookup is greater than, not less than. Can anyone help with this? Thanks!

=IF(F28=1,IF(VLOOKUP(G28,$AB$2:$AC$15,2,FALSE)>=T28,T28,T28+U28),IF(VLOOKUP(F28,$Z$2:$AA$26,2,FALSE)<=T28,T28,T28+U28))
 
I couldn't get your formula to work, but I also had to manually type it. I couldn't copy it from your reply into excel. so it could have been my typing error.
But I did get these to work
Column T .... =IF(F28=1,IF(VLOOKUP(G28,$AB$2:$AC$14,2,FALSE)<=(O28+S28),O28,O28+S28),IF(VLOOKUP(F28,$Z$2:$AA$26,2,FALSE)<=(O28+S28),P28,O28+S28))
Column U.... =IF(F28=1,IF(VLOOKUP(G28,$AB$2:$AC$15,2,FALSE)<=(T28+U28),P28,T28+U28),IF(VLOOKUP(F28,$Z$2:$AA$26,2,FALSE)<=(T28+U28),P28,T28+U28))
Column X .... =IF(P28=V28,(((O28+U28+S28)-V28)*N28*26),0)


I really appreciate you taking time to work through this with me, it is great to find a space to bounce ideas off of. thank you!
 
Upvote 0
Solution

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,215,430
Messages
6,124,852
Members
449,194
Latest member
HellScout

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