+ Reply to Thread
Results 1 to 10 of 10

Need help with IF Formula

  1. #1
    Registered User
    Join Date
    04-09-2012
    Location
    Virginia
    MS-Off Ver
    Microsoft Excel Starter 14.0
    Posts
    29

    Need help with IF Formula

    I want: IF Sum A is > Sum B then return B/A-1 but if Sum B > Sum A then then return A/B-1. I do not know what formula to put in.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Need help with IF Formula

    Does Sum A mean sum of a range of cells, and Sum B is for a different range?

    Pete

  3. #3
    Registered User
    Join Date
    04-09-2012
    Location
    Virginia
    MS-Off Ver
    Microsoft Excel Starter 14.0
    Posts
    29

    Re: Need help with IF Formula

    Yes that is correct.

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

    Re: Need help with IF Formula

    Also, is that

    (B/A)-1
    or
    B/(A-1)

    There's a big difference.

  5. #5
    Registered User
    Join Date
    03-14-2012
    Location
    KERALA
    MS-Off Ver
    EXCEL 2007
    Posts
    18

    Re: Need help with IF Formula

    =if(A>B,B/(A-1),A/(B-1)

  6. #6
    Registered User
    Join Date
    04-09-2012
    Location
    Virginia
    MS-Off Ver
    Microsoft Excel Starter 14.0
    Posts
    29

    Re: Need help with IF Formula

    (B/A)-1 is correct.

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

    Re: Need help with IF Formula

    Try

    =MIN(A/B,B/A)-1

  8. #8
    Registered User
    Join Date
    04-09-2012
    Location
    Virginia
    MS-Off Ver
    Microsoft Excel Starter 14.0
    Posts
    29

    Re: Need help with IF Formula

    This worked: =if(A>B,B/(A-1),A/(B-1) Thanks!

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: Need help with IF Formula

    That contradicts what you said in post #6, and you should have another bracket at the end.

    Pete

  10. #10
    Registered User
    Join Date
    04-09-2012
    Location
    Virginia
    MS-Off Ver
    Microsoft Excel Starter 14.0
    Posts
    29

    Re: Need help with IF Formula

    My apologies.

+ 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. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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