Modify and Optimize Formula

fredlo2008

Active Member
Joined
Jan 12, 2012
Messages
254
Hello guys,

I need to modify and possibly optimize this formula.

=IFERROR(IF(Headers(A9)="","",IF(A9=IFERROR(VLOOKUP(A9,'Reference Workbook.xlsx'!OldCodes,2,FALSE),""),"Old code"&","&" please use "&VLOOKUP(A9,'Reference Workbook.xlsx'!OldCodes,3,FALSE),IF(A9=IFERROR(VLOOKUP(A9,'Reference Workbook.xlsx'!SaleValidation,1,FALSE),""),"Sales item only"&","&" please use "& VLOOKUP(A9,'Reference Workbook.xlsx'!SaleValidation,2,FALSE),VLOOKUP(A9,'Reference Workbook.xlsx'!Data,2,FALSE)))),"Item could not be found!")

In this formula "Header" is a small UDF I created to avoid multiple nested ifs (more than 30)

Thanks a lot
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Is it personal or what? Joking its a little frustrating that I never get help when I need it on this forum. :( I always help others
 
Upvote 0

Forum statistics

Threads
1,203,483
Messages
6,055,669
Members
444,806
Latest member
tofanexcel

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