2 different formulas depending on a cell value

Reecenorman1996

New Member
Joined
Jul 20, 2023
Messages
31
Office Version
  1. 365
Platform
  1. Windows
the below is the formula that iv tried to make work if cell f1 is SA i need one formula if its OA i need another

=IF(F1="OA",IFERROR(INDEX('SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],MATCH(TRUE,INDEX('SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref]=[@[Prop Ref]],0),0)),1)),IF(F1="SA",IFERROR(INDEX('SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],MATCH(TRUE,INDEX('SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref]=[@[Prop Ref]],0),0)),1))

thank in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
In what way doesn't it work?
 
Upvote 0
Ok, how about
Excel Formula:
=IF(F1="OA",XLOOKUP([@[Prop Ref]],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],1),IF(F1="SA",XLOOKUP([@[Prop Ref]],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],1)))
 
Upvote 0
Solution
Ok, how about
Excel Formula:
=IF(F1="OA",XLOOKUP([@[Prop Ref]],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],1),IF(F1="SA",XLOOKUP([@[Prop Ref]],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Prop Ref],'SST1 SST2 AML 03.05.23.xlsx'!Table4[Emails sent],1)))
thank works thank you
 
Upvote 0
In the future, when marking a post as the solution, please mark the original post that contains the solution, not your own post acknowledging that some other post is the solution.
I have updated this for you on this thread.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

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