IF formula Help

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
246
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am trying to lookup only "DELIVERED" items and have it look up based on tracking number, then return the date it was delivered from Sheet 2 Col L to Sheet 1 Col J, but ONLY if Sheet 1, Col C status says DELIVERED, otherwise leave blank not some error code like Ref# or something else.
Also, how to write it from start to last row instead of L2:L100000?

Sheet 1
Column A- Tracking #
Column C - Status
Column J - Date Delivered

Sheet 2
Col E - Tracking #
Col L - Date Delivered

Excel Formula:
IF($C5="DELIVERED",LOOKUP($A5,SHEET2!E2:E10000,Sheet2!$L2:$L10000
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
This provides what you need except for the rows requirement:
mr excel questions 22.xlsm
ACEJLMN
1I am trying to lookup only "DELIVERED" items and have it look up based on tracking number, then return the date it was delivered from Sheet 2 Col L to Sheet 1 Col J, but ONLY if Sheet 1, Col C status says DELIVERED, otherwise leave blank not some error code like Ref# or something else.
2
3Also, how to write it from start to last row instead of L2:L100000?
4Sheet 2
5Col E - Tracking #Col L - Date Delivered
65647896 
7654875422023-02-05
8
9
10
11
12Sheet 1
13Column A- Tracking #Column C - StatusColumn J - Date Delivered
145647896
1565487542DELIVERED2023-02-05
16
NeoSez
Cell Formulas
RangeFormula
L6:L7L6=IFERROR(INDEX($J$14:$J$15,MATCH($E6&"DELIVERED",$A$14:$A$15&$C$14:$C$15,0)),"")
 
Upvote 0
In order to really work with columns I think you need to be using 365, or put the data in sheet1 into a table.
 
Upvote 0
Thanks awoohaw. I couldn't get it to work for me, but let me play around with it some more.
 
Upvote 0
Thanks awoohaw. I couldn't get it to work for me, but let me play around with it some more.
I matched your column letters as you described in the write up. The only thing I did not do was us a different sheet.
paste the entirety of what I have above into a new worksheet and see if it works.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

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