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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This Article is a follow-up to my Mappit! Addin Article (, it was inspired by an email posting I made to EUSPRIG (, I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

759 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

22 Experts available now in Live!

Get 1:1 Help Now