IF for Data that matches in a Different Sheet

luisitocarrion1900

Board Regular
Joined
Oct 30, 2017
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a sheet name "AIM" and a sheet name "AI Status"

I need to place a formula on the sheet named "AIM" column named "Post Status", that if Column named "Business Unit" data matches the data on the sheet Named "AI Status" Column named "Business Unit" and the data on the sheet named "AIM" column named "Submission Status" says "A/LM/PMP/PM Approved" and enter the words "Completed" in the AIM sheet column named "Post Status" but if the date in the sheet named "AIM" column named "Extension Date" is passed today's date and the words A/LM/PMP/PM Approved or PMO Approved are not in sheet AI Status column Named "Submission Status" enter the words "Delinquent" in sheet named "AIM" Column named "BU Status" but if the date has not been met and the the status of A/LM/PMP/PM Approved or PMO Approved is not there enter Pending

See both sheets below the first sheet is the AIM Sheet and the second will be the AI Status Sheet.

AIM Sheet

1582757460362.png



AI Status Sheet

1582757403240.png
 

Attachments

  • 1582757306604.png
    1582757306604.png
    44.5 KB · Views: 2

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi,
Maybe something along:
Mrexcel.xlsx
ABCDE
1AIM
2BUBUDPostPstatusextension date
3yaounherethiscompleted02/27/2020
4nssittherethatdelinquent02/28/2020
5cooitanywherethesedelinquent02/29/2020
6txlitcompleted02/29/2020
7
8AI
9BUDSCStatus
10yaounthisA/LP/PMP/PM Approved
11txlitthatPMO Approved
12cooitthoseA/LP Approved
luisitocarrion1900
Cell Formulas
RangeFormula
D3:D6D3=IF(AND([@[extension date]]>TODAY()=TRUE,OR(XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="A/LP/PMP/PM Approved",XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="PMO Approved")=TRUE),"completed", IF(AND([@[extension date]]>TODAY()=FALSE,OR(XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="A/LP/PMP/PM Approved",XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="PMO Approved")=TRUE),"completed","delinquent"))
 
Upvote 0
Hi,
Maybe something along:
Mrexcel.xlsx
ABCDE
1AIM
2BUBUDPostPstatusextension date
3yaounherethiscompleted02/27/2020
4nssittherethatdelinquent02/28/2020
5cooitanywherethesedelinquent02/29/2020
6txlitcompleted02/29/2020
7
8AI
9BUDSCStatus
10yaounthisA/LP/PMP/PM Approved
11txlitthatPMO Approved
12cooitthoseA/LP Approved
luisitocarrion1900
Cell Formulas
RangeFormula
D3:D6D3=IF(AND([@[extension date]]>TODAY()=TRUE,OR(XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="A/LP/PMP/PM Approved",XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="PMO Approved")=TRUE),"completed", IF(AND([@[extension date]]>TODAY()=FALSE,OR(XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="A/LP/PMP/PM Approved",XLOOKUP([@BU],AI_status[BU],AI_status[Status],"no data",0)="PMO Approved")=TRUE),"completed","delinquent"))

When i paste the formula is not doing nothing all i see is the formula

1582816510985.png
 
Last edited:
Upvote 0
Well noted. What version of excel are you using?
 
Upvote 0
Sorry I could not see the version on my phone.
Please make sure that the equal sign is there, no ' inserted prior to the equal sign.
1582847699569.png

Also please check this:
  • Select the cell.
  • Format the cell as "General". (Right-click the cell, select Format Cells, and choose "General.")
  • Delete the "=" at the beginning of your formula, and hit Enter.
  • Insert the "=" back in the formula at the beginning.
And
1582847668711.png
 
Upvote 0
Sorry I could not see the version on my phone.
Please make sure that the equal sign is there, no ' inserted prior to the equal sign.
View attachment 7790
Also please check this:
  • Select the cell.
  • Format the cell as "General". (Right-click the cell, select Format Cells, and choose "General.")
  • Delete the "=" at the beginning of your formula, and hit Enter.
  • Insert the "=" back in the formula at the beginning.
And
View attachment 7789

was this meant for me
 
Upvote 0
yes, you are using 365, the formula should work.
please kindly check the suggested fixes first.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,181
Members
448,871
Latest member
hengshankouniuniu

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