Solved

Excel: IF(ISNA) / Else calculation statement

Posted on 2014-11-03
3
216 Views
Last Modified: 2014-11-03
Hello,

I would like to run a IF(ISNA) statement, however if there is no '#N/A' found, then run a calculation. Is this possible?

My current formula is (line breaks for ease of reading)

=IF(ISNA(I2-(INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0)))),1,
(INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0))))>240,1,2))

Currently, this returns 'false' if there's no #N/A. Instead I would like Excel to calculate the second line of my formula.

Thanks
0
Comment
Question by:dabug80
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 250 total points
ID: 40419134
I think you are missing an IF at the start of the second line. Otherwise, what you have got would not make sense.
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40419135
You are getting FALSE because it is calculating the second part of the Formula but you are missing an IF.

The second part of the formula is looking at INDEX(.....) and comparing to 240 but currently all its doing is "Index calc'd Value" > 240  TRUE or FALSE. I believe it should be:

=IF(ISNA(I2-(INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0)))),1,
IF((INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0))))>240,1,2)))

Thanks
Rob H
0
 
LVL 1

Author Closing Comment

by:dabug80
ID: 40419144
Thanks. I split the points. Final formula was:

=IF(ISNA(I2-(INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0)))),1,IF((INDEX('Sent Emails'!I:I,MATCH('3 Month Letter'!A2,'Sent Emails'!A:A,0)))>240,1,2))
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question