+ Reply to Thread
Results 1 to 9 of 9

If statement

  1. #1
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    If statement

    I got help for this formula from the forum a while back. Now I need to make some changes. Could you please help . . . again

    ( please see the attachment)

    The spreadsheet is used as an Audit tool to review the accts worked:

    Each P error code entered should deduct 20% of a 100% (multiple codes can be entered).


    If no errror is entered in the error code field - it should show 100% in the calculation column


    Each F error code should show 0%
    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Use this formula pasted into C24

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    Formula Help

    Thank you so much! It works great!

  4. #4
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    Formula Help

    Just one thing . . " F" error codes are not showing 0% .

    Everything else work perfect.

    ( blank error code = 100%
    P code 20% reduction - multiple P codes can be posted in one cell
    F codes = 0%)

    Thanks

  5. #5
    Forum Contributor corinereyes's Avatar
    Join Date
    12-02-2003
    Location
    Philippines
    MS-Off Ver
    MS Excel 2016
    Posts
    520
    Hi Alma,

    Maybe?

    =IF(LEFT(B24,1)="F","", 0)
    Corine

  6. #6
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    IF Stetement

    yes, that one would work for the "F" code by itself. What I need is one formula that will show :

    100% if the cell is blank
    0% if the cell shows any "F" code ( could be F10, F2, F15 . . .) and
    it should show 20% reduction ( of a 100%) for any P code entered ( multiple codes could be entered in the same cell devided by a "," sign.

    The formula MRICE sent me works perfectly for blank cells and P codes. I need to add something to it to show 0% when a "F" error code is entered.

    Thank you both for your help!

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Perhaps try

    =IF(LEFT(B24)="F",0,1-(LEN(B24)-LEN(SUBSTITUTE(B24,"P","")))/5)

  8. #8
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    If Statement

    it is not working. " F" codes are still showing 100% instead of 0%.

    Thanks for your help

  9. #9
    Registered User
    Join Date
    02-02-2005
    Posts
    51

    If Statement

    I have no idea what I did the first time I tried to formula so it did not work-
    it works great now!

    Thank you all for your help!

+ 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