+ Reply to Thread
Results 1 to 2 of 2

Thread: odd if statement help?

  1. #1
    Registered User
    Join Date
    06-24-2011
    Location
    Illinois
    MS-Off Ver
    Excel 2007
    Posts
    1

    odd if statement help?

    Hello everyone,

    I am trying to help a friend make an excel table that does a few different things.. so far there has been no problems until right now...

    Basically he wants to input dates, and some numbers about some information. Based on those 2 numbers it will return the sum. Then calculate a percentage based on those numbers, then get a ratio based of the percentage numbers. From their it does a true false test to see if that number is greater than 4. All this works just fine and was no trouble.

    The problem is now he wants this "Final Test" to first check if we get a True (from if greater than 4) AND if the ratio for today is greater than yesterday then return UP. If the test is True, but ratio is less than the previous day return DOWN. If it was False to begin with return -.

    I tried to do a few different nested if functions, which none worked, and I also tried to create a user defined function to do the tests.. this also is not working. Does anyone have an Idea or know how to get excel to handle this?

    Thank you for any and all help.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    MS 2007
    Posts
    5,372

    Re: odd if statement help?

    An example workbook would help.
    In general,
    if yesterdays ratio is in B2, today's ratio in B3
    =IF(B3>4,IF(B3>B2,"Up","Down"),"-")
    ChemistB
    My 2¢

    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

+ 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.2.0