IF formula Help

NeoSez

Board Regular
Joined
Aug 14, 2020
Messages
210
Office Version
  1. 2019
  2. 2010
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

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.
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,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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