Combining multiple IFs

Bazabelle

New Member
Joined
Oct 6, 2022
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to combine the following into 1. So it's a if the first is true, or 2nd is true, or 3rd is true get the information in Sheet 2 - IFNA(VLOOKUP($A2,' Sheet2'!$A:$CW,54,FALSE,"")), else "";

VLOOKUP($A2,'Sheet1'!$A:$CQ,70,FALSE))=""

VLOOKUP($A2,' Sheet1'!$A:$CQ,70,FALSE))="-"

VLOOKUP($A2,' Sheet1'!$A:$CQ,70,FALSE))="Please Select"

Thanks in advance!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
try this
Excel Formula:
=IF(OR(VLOOKUP($A2,'Sheet1'!$A:$CQ,70,FALSE)="",VLOOKUP($A2,'Sheet1'!$A:$CQ,70,FALSE)="-",VLOOKUP($A2,'Sheet1'!$A:$CQ,70,FALSE)="Please Select"),IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")

or

Excel Formula:
=LET(acqlookup,VLOOKUP($A2,'Sheet1'!$A:$CQ,70,FALSE),IF(OR(acqlookup="",acqlookup="-",acqlookup="Please Select"),IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE,""),""))
 
Upvote 0
I am not sure why the formulas you are giving is not working on my side... I have manage in the below way but it is a very long formula... :LOL:

=IF(IF(IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE))="-",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'PSO Data'!$A:$CW,54,FALSE))="",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE))="Please select",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")))="",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")=0,"", IF(IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE))="-",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE))="",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),IF(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE))="Please select",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")))="",IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),""))
 
Upvote 0
Try if this short version works:
Excel Formula:
=IF(OR(ISNUMBER(MATCH(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE)),{"-","Please select",""},0))),IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")
 
Upvote 0
Try if this short version works:
Excel Formula:
=IF(OR(ISNUMBER(MATCH(IFNA(VLOOKUP($A2,'Sheet1'!$A:$CW,70,FALSE),VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE)),{"-","Please select",""},0))),IFNA(VLOOKUP($A2,'Sheet2'!$A:$CW,54,FALSE),""),"")
It returns all cells blank
 
Upvote 0
this should be the equivalent of your formula above, just much shorter

Excel Formula:
=LET(v54l,VLOOKUP($A2,Sheet2!$A:$CW,54,FALSE),v70l,VLOOKUP($A2,Sheet1!$A:$CW,70,FALSE),IF(IF(IF(IFNA(v70l,v54l)="-",IFNA(v54l,""),IF(IFNA(v70l,VLOOKUP($A2,'PSO Data'!$A:$CW,54,FALSE))="",IFNA(v54l,""),IF(IFNA(v70l,v54l)="Please select",IFNA(v54l,""),"")))="",IFNA(v54l,""),"")=0,"",IF(IF(IFNA(v70l,v54l)="-",IFNA(v54l,""),IF(IFNA(v70l,v54l)="",IFNA(v54l,""),IF(IFNA(v70l,v54l)="Please select",IFNA(v54l,""),"")))="",IFNA(v54l,""),"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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