if statement

Posted on 2011-02-17
Last Modified: 2012-06-27
Experts, if C39 = text then I would need the result to be "Does not Drop Down" and return the formula if otherwise.  I do not know how to write if C39 = some text or letters.
thank you
I get a #Value:  
=IF(C39=" ","Does not Drop Down"),$C$40*$B$42+($B$26*$B$40*($B$43/365))+($C$41*$B$45)+($B$26*$B$41*($B$46/365))+(($B$26*$B$49)*$B$51)+($B$26*$B$49*($B$52/365))+(($B$26*$B$50)*$B$54)+($B$26*$B$50*($B$55/365))
Question by:pdvsa
  • 2
  • 2
LVL 50

Expert Comment

by:barry houdini
ID: 34917693
You can use ISTEXT, i.e.

=IF(ISTEXT(C39),"Does not Drop Down",$C$40*$B$42+($B$26*$B$40*($B$43/365))+($C$41*$B$45)+($B$26*$B$41*($B$46/365))+(($B$26*$B$49)*$B$51)+($B$26*$B$49*($B$52/365))+(($B$26*$B$50)*$B$54)+($B$26*$B$50*($B$55/365)))

regards, barry

Author Comment

ID: 34918204
OK that does work for a scenario I have but for the other one (wont go into detail) it does not work.  Can you modify to if it equals "Does not Drop Down" then return "Does not Drop Down" and Else the formula?  

thank you barry...
LVL 50

Accepted Solution

barry houdini earned 500 total points
ID: 34918241
For that you can use this version

=IF(C39="Does not Drop Down",C39,$C$40*$B$42+($B$26*$B$40*($B$43/365))+($C$41*$B$45)+($B$26*$B$41*($B$46/365))+(($B$26*$B$49)*$B$51)+($B$26*$B$49*($B$52/365))+(($B$26*$B$50)*$B$54)+($B$26*$B$50*($B$55/365)))

If you explain the scenario where the first formula didn't work, I'm sure there would be a way to address that too

regards, barry

Author Closing Comment

ID: 34918411
that was it!  thank you barry...

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to read BOM (Byte Order Mark) from csv file. 4 38
Copy value from a certain cell 5 25
ADD New Entries 7 16
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

864 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now