+ Reply to Thread
Results 1 to 5 of 5

Get wrong value in Nested If formula

  1. #1
    Registered User
    Join Date
    09-12-2014
    Location
    Lorain, OHIO
    MS-Off Ver
    2013
    Posts
    5

    Get wrong value in Nested If formula

    Ok cant seem to figure this out please help

    IF cell B1 is greater than 0 then check to see if B1 is less than A1. , if B1 is less than A1 enter B1, If B1 is greater than A1 enter A1. If B1 is less than 0 then enter A1

    I think it should look like this but it isnt working


    =IF(B1>0,IF(B1<A1,B1,A1),A1)

    Thanks

  2. #2
    Registered User
    Join Date
    09-12-2014
    Location
    Lorain, OHIO
    MS-Off Ver
    2013
    Posts
    5

    Re: Get wrong value in Nested If formula

    Sorry figured it out. The data in my B column was formated as text not a number.

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,102

    Re: Get wrong value in Nested If formula

    the formula looks correct
    what errors are you getting

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve - and show what errors you are getting .

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Get wrong value in Nested If formula

    Works for me, in what way does it not work for you?

    Can you show a few example values of A and B, what result you get, what result you wanted?

  5. #5
    Registered User
    Join Date
    09-12-2014
    Location
    Lorain, OHIO
    MS-Off Ver
    2013
    Posts
    5

    Re: Get wrong value in Nested If formula

    I got it the values in B column were not formated as numbers. The formula is correct. Thanks for quick replies and your 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. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  2. Replies: 3
    Last Post: 02-13-2007, 11:44 AM
  3. Where am I going wrong with this formula
    By Monkbar in forum Excel General
    Replies: 2
    Last Post: 11-23-2006, 07:37 AM
  4. [SOLVED] What's wrong with this formula?
    By JHL in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-09-2006, 09:15 PM
  5. Nested subtotal figures in wrong order
    By Nested subtotal figures in wrong order in forum Excel General
    Replies: 7
    Last Post: 05-18-2006, 11:00 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