Need Assistance with Complex Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
I am having difficulties with creation of a formula to perform what I have described below:

The formula for the logic below will exist in cell C2 of the IMAC-D Summary worksheet:
If the value in cell J2 of the IMAC-D Summary worksheet DOES NOT EXIST in column A of the Lookup – Aged worksheet, then return “SN NOT FOUND”
If the value in cell J2 of the IMAC-D Summary worksheet DOES EXIST in column A of the Lookup – Aged worksheet, AND, if the value in F2 of the IMAC-D Summary is “Disposal”, then,
If the value in column B of the Lookup – Aged worksheet is greater than 7.99, then return “In Scope”
If the value of column B of the Lookup – Aged worksheet is less than 8.00, then return “OOS
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try:

Excel Formula:
=IFERROR(IF(VLOOKUP(J2,'Lookup - Aged'!A:B,2,0)<8,"OOS","In Scope"),"SN NOT FOUND")
 
Upvote 0
Forgot the Disposal part, try:

Excel Formula:
=LET(amt,VLOOKUP(J2,'Lookup - Aged'!A:B,2,0),IF(ISERROR(amt),"SN NOT FOUND",IF(F2="Disposal",IF(amt<8,"OOS","In Scope"),"Found, but f2 <> Disposal")))
 
Upvote 0
Formula returns "
SN NOT FOUND in every cell
 
Upvote 0
I figured it out.........my mistake..........thanks so much Eric........this is a great assistance to me.
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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