+ Reply to Thread
Results 1 to 8 of 8

if statement question

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    McAllen TX
    MS-Off Ver
    Excel 2007
    Posts
    389

    if statement question

    IF(B$7<=DATEVALUE("12-31-15"),"4.91%","5.1%")

    i have a variable(located in cell D12) that makes the false result in this if statement 5.0 instead of 5.1...
    how do i write this in ...

    thanks in advance

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: if statement question

    This is because you have " " around you percentages
    Try it like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    McAllen TX
    MS-Off Ver
    Excel 2007
    Posts
    389

    Re: if statement question

    let me make myself more clear the if statement as written works fine...

    but I want to add a variable (located in d12) that would make the false result 5.0 instead of 5.1

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: if statement question

    The mentioning of D12 as variable has no meaning without a further explanation.

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    McAllen TX
    MS-Off Ver
    Excel 2007
    Posts
    389

    Re: if statement question

    it is just text in D12 that if certain text string is there the 5.1 needs to change to 5.0

    let me say it another way: =IF(B$7<=DATEVALUE("12-31-15"),4.91%,5.1%) EXCEPT when D12="South & Western" then IF(B$7<=DATEVALUE("12-31-15"),4.91%,5.0%)

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: if statement question

    Try this ...

    =IF(B$7<=DATE(2015,12,31),4.91%,IF(D12="South & Western",5%,5.1%))

  7. #7
    Forum Contributor
    Join Date
    04-30-2013
    Location
    McAllen TX
    MS-Off Ver
    Excel 2007
    Posts
    389

    Re: if statement question

    Perfect, THANK YOU phuocam

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: if statement question

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] IF AND Statement question
    By joebell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2012, 10:03 PM
  2. Hi and an IF statement question
    By Johnmitch93 in forum Excel General
    Replies: 4
    Last Post: 11-11-2011, 05:23 PM
  3. IF / AND Statement Question
    By Rino468 in forum Excel General
    Replies: 1
    Last Post: 10-25-2011, 11:49 AM
  4. Have question about using .find statement and brackets around After:= statement
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-09-2011, 03:28 PM
  5. [SOLVED] IF then statement question
    By ChuckW in forum Excel General
    Replies: 2
    Last Post: 02-24-2006, 12:35 PM
  6. IF Statement Question
    By bj in forum Excel Formulas & Functions
    Replies: 60
    Last Post: 09-06-2005, 07:05 AM
  7. IF Statement Question
    By Scott in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. [SOLVED] IF Statement question
    By gryfon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-04-2005, 05:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1