+ Reply to Thread
Results 1 to 8 of 8

If cell value is not equal to a value then subtract an amount

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    If cell value is not equal to a value then subtract an amount

    Hello,

    I am looking for assistance in adding to the formula below.

    =IF(OR(A3="",C3=""),"",IF(D3="No",1,IF(D3="Yes",2,0))*VLOOKUP(C3,'Employee Search'!$C$3:$D$19,2,FALSE))

    What I need to add is IF(E3<>"No") to minus 1 from the total returned from the formula above. If it is no, do nothing or minus 0.

    When trying to add that in, I keep getting errors.

    I appreciate any help.

    Thank you,
    Nick

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: If cell value is not equal to a value then subtract an amount

    Just tag on
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by TMS; 01-12-2023 at 05:28 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: If cell value is not equal to a value then subtract an amount

    Awesome, thanks TMS!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: If cell value is not equal to a value then subtract an amount

    You're welcome. Thanks for the rep.

  5. #5
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: If cell value is not equal to a value then subtract an amount

    Hi, follow up.

    It is working, but when C3 is blank, it is giving me a #VALUE! error, it is no longer using the first part of the formula, C3="","". Do you know the reason for that?

    =IF(OR(A3="",C3=""),"",IF(D3="No",1,IF(D3="Yes",2,0))*VLOOKUP(C3,'Employee Search'!$C$3:$D$19,2,FALSE)) -IF(E3="No",0,1)

    Thanks

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: If cell value is not equal to a value then subtract an amount

    Ah, ok, try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    402

    Re: If cell value is not equal to a value then subtract an amount

    Great Thank you TMS!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,457

    Re: If cell value is not equal to a value then subtract an amount

    You're welcome.

+ 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. Replies: 3
    Last Post: 09-09-2021, 05:08 PM
  2. Replies: 6
    Last Post: 08-18-2019, 10:21 PM
  3. [SOLVED] subtract from a specific amount but keep total in same cell?
    By michaelDDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2015, 08:37 PM
  4. IF, THEN subtract cell by however much to get it equal to zero
    By fractaltraveler in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-16-2015, 03:10 PM
  5. Replies: 4
    Last Post: 03-14-2014, 09:54 AM
  6. Replies: 4
    Last Post: 12-02-2013, 03:27 AM
  7. Formula for amount owing subtract amount paid
    By Taperchart in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2006, 12:55 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