Simplify formula

DHayes

Board Regular
Joined
Nov 12, 2014
Messages
244
Hi,
Is there a way to simplify the below Formula?
Code:
=IF(INDEX('Data Sheet'!$A$1:$P$73,MATCH(A3,'Data Sheet'!$A$1:$A$73,0),12)=0,"N/A",INDEX('Data Sheet'!$A$1:$P$73,MATCH(A3,'Data Sheet'!$A$1:$A$73,0),12))
 

Some videos you may like

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

SteveO59L

Well-known Member
Joined
Apr 21, 2004
Messages
7,896
try posting a sample of your data, and what you would like to do with it
 

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,383
Office Version
2016
Platform
Windows
try this

=IF(VLOOKUP(a3,'Data Sheet'!$A$1:$p$73,12,0)=0,"N/A",VLOOKUP(a3,'Data Sheet'!$A$1:$p$73,12,0))
 

DHayes

Board Regular
Joined
Nov 12, 2014
Messages
244
Thanks snjpverma,
The VLOOKUP works the same. The reason I am using index because there are left and right lookups in other formulas. I was hoping there is way without having to type the formula twice.
 

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,383
Office Version
2016
Platform
Windows
DHayes, I can't think of a way in which writing the formula twice can be avoided. incase, anything strikes my mind, will let you know.
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,382
Office Version
365
Platform
Windows
Hi,
Is there a way to simplify the below Formula?
Is the zero result because there is a zero in column L or because there is a blank cell? What is in column L - is it numbers or text or can it be both?
 

DHayes

Board Regular
Joined
Nov 12, 2014
Messages
244
Hi FormR,
Yes it will be always be 0. Column L contains number's only. There will never be a blank or text.
 

FormR

MrExcel MVP
Joined
Aug 18, 2011
Messages
6,382
Office Version
365
Platform
Windows
Here is one way, note: this has the potential to introduce floating point rounding errors so depending on what you are doing with the returned values you may be better off sticking with the IF() approach or you may want to apply some rounding the result.

=IFERROR(1/(1/INDEX('Data Sheet'!$A$1:$P$73,MATCH(A3,'Data Sheet'!$A$1:$A$73,0),12)),"N/A")
 

Watch MrExcel Video

Forum statistics

Threads
1,095,752
Messages
5,446,294
Members
405,395
Latest member
anilals

This Week's Hot Topics

Top