+ Reply to Thread
Results 1 to 7 of 7

Help needed with if( formula giving a value in one cell based on two other cells.

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Help needed with if( formula giving a value in one cell based on two other cells.

    I am trying to figure out how to achieve the following in spread sheet am working on. I would like one cell to represent a value based the values of two other cells.

    1. if I10=4 then K9 should be the value of I9+1

    2. otherwise, K9 should reflect the value of I9


    I can't seem to find the correct formula for this in Excel. any help would be greatly appreciated.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    In K9

    =I9+IF(I10=4,1,0)
    or
    =IF(I10=4,I9+1,I9)
    or
    =I9+(I10=4)
    Last edited by Ace_XL; 09-05-2013 at 04:50 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    thanks for the reply. These don't seem to work for my situation.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    Quote Originally Posted by dancor31 View Post
    thanks for the reply. These don't seem to work for my situation.
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    Here is the attachment as requested:

    the first tab shows what I have done. The second what the end result should.
    Attached Files Attached Files

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    The double quotes convert the number to text. Get rid of them.
    Change your formula in I10 to this

    =IF(G10=0,0,IF(G10<=0.25,1,IF(G10<0.5,2,IF(G10<0.75,3,4))))

    Then in K9, use any of the formulas suggested in Post#2

  7. #7
    Registered User
    Join Date
    10-19-2011
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Help needed with if( formula giving a value in one cell based on two other cells.

    Works great!!! Thanks for you help.

+ 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. Replies: 6
    Last Post: 04-10-2012, 12:45 PM
  2. Replies: 1
    Last Post: 03-05-2012, 04:28 PM
  3. Replies: 5
    Last Post: 02-20-2012, 06:08 AM
  4. Replies: 0
    Last Post: 09-14-2005, 01:05 PM
  5. cell giving formula instead of value
    By MGlick in forum Excel General
    Replies: 2
    Last Post: 04-12-2005, 03:21 PM

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