+ Reply to Thread
Results 1 to 4 of 4

Help with a formula:co-worker designed

  1. #1
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327

    Help with a formula:co-worker designed

    Hi All, maybe you can help. I have a spreadsheet a co-worker designed and asked my help in. It helps calculate net pay, and had a question regarding a formula.

    In cell D8, is my gross pay, which is a calculation from another worksheet.
    There are four different calculations (depending on the gross pay) to determine net pay.

    The four formulas being used are:
    =IF($D$8>0,IF($D$8>308,IF($D$8<869,$D$8,"")))

    =IF($D$8>0,IF($D$8>869,IF($D$8<2546,$D$8,"")))

    =IF($D$8>0,IF($D$8>2546,IF($D$8<4644,$D$8,"")))

    =IF($D$8>0,IF($D$8>4644,IF($D$8<7292,$D$8,"")))

    The bottom two formulas are returning a FALSE value. I attached a screenshot of the spreadsheet.
    Is there a better way to write these formulas in that don't return a value of FALSE?

    Thanx...LT

  2. #2
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Here's the screenshot.
    Attached Images Attached Images

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    All formulas can be replaced with formulas containing AND() function...

    e.g.

    =IF(AND($D$8>2546,$D$8<4644),$D$8,"")

    don't think you need the $D$8>0 qualifier if you are looking in a range.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Contributor
    Join Date
    06-29-2005
    Location
    TN
    MS-Off Ver
    Microsoft 365
    Posts
    327
    Quote Originally Posted by NBVC
    All formulas can be replaced with formulas containing AND() function...

    e.g.

    =IF(AND($D$8>2546,$D$8<4644),$D$8,"")

    don't think you need the $D$8>0 qualifier if you are looking in a range.

    Thanx....worked great.

    LT

+ 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