+ Reply to Thread
Results 1 to 6 of 6

Set Cell Value from IF condition

  1. #1
    Forum Contributor
    Join Date
    06-28-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    115

    Set Cell Value from IF condition

    Hi
    I am trying to set Cell B18 to something depending on if condition,

    so in cell B16 I have this formula
    =IF(B15>3,B18=11,B18=9)

    it doesn't work plz help me,
    I know I can type this formula in cell B18
    =IF(B15>3,11,9)
    but it doesn't do what I want it to,
    I have script that send's email it B18 is greater than 10
    it works but it only send email if I enter 11 manually in B18 , doesn't work if I type use if condition

    Thanks

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Set Cell Value from IF condition

    If B15 is greater than 3, how do you decide if B18 should be 11 or 9?
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    06-28-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    115

    Re: Set Cell Value from IF condition

    if B15 is greater than 3, than get value of B18 = 11
    if B15 is less than 3 than set value of B18 = 9

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Set Cell Value from IF condition

    Do you mean?

    =IF(B15>3,11,IF(B15<3,9))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    06-28-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    115

    Re: Set Cell Value from IF condition

    Yes & No
    I will put this formula in B16 =IF(B15>3,11,IF(B15<3,9))

    I want B16 to change value in B18

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Set Cell Value from IF condition

    I don't understand why another formula in B18 won't suffice?

    Can you elaborate some more?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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