+ Reply to Thread
Results 1 to 9 of 9

IF Statement Issues

  1. #1
    Registered User
    Join Date
    05-26-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    5

    IF Statement Issues

    Hello,

    Please can someone assist?

    I need to create a formula that will remove "0.5" or "1" from a total, from cells that say "Half Day" or "Full Day" respectively. E.g. If the employee has 26 days holiday left and I enter "Full Day" into the relevant cell, I need it then to minus "1" from the total of holidays entitled, resulting in "25"

    The cells with "Full Day" and "Half Day" in the have Data Validation applied and I don't know if that will affect the process?

    There's probably a more coherent way of explaining that I apologise.

    Any help would be greatly appreciated.

    Andrew

  2. #2
    Registered User
    Join Date
    07-12-2014
    Location
    Rome, Georgia
    MS-Off Ver
    2011 Mac
    Posts
    52

    Re: IF Statement Issues

    Are you looking for something like the attached?
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-26-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    5

    Re: IF Statement Issues

    Yes that's great, thank you very much!

    Will it still work if conditional formatting is applied?

  4. #4
    Registered User
    Join Date
    07-12-2014
    Location
    Rome, Georgia
    MS-Off Ver
    2011 Mac
    Posts
    52

    Re: IF Statement Issues

    Yes, conditional formatting shouldn't affect anything.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: IF Statement Issues

    Here's one way...

    Data Range
    A
    B
    C
    1
    Holidays
    Type
    Balance
    2
    26
    Half Day
    25.5


    This formula entered in C2:

    =IF(AND(COUNT(A2),A2>0),A2-IF(B2="Full Day",1,IF(B2="Half Day",0.5)),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    05-26-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    5

    Re: IF Statement Issues

    I've just tried to drag the formula down and it only works on the row below, after that the number is "0"

    Also, I have seperated the months on to different tabs, but I need a the total holdiays to decrease over the year. Is this posible over 12 tabs? Or would it be more beneficial to have the entire year on one tab?

    I really appreciate all your help

  7. #7
    Registered User
    Join Date
    05-26-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    5

    Re: IF Statement Issues

    Plus I need the total to be "26" over the year?

    Thanks again

  8. #8
    Registered User
    Join Date
    05-26-2015
    Location
    Manchester
    MS-Off Ver
    2007
    Posts
    5

    Re: IF Statement Issues


  9. #9
    Forum Contributor
    Join Date
    07-10-2012
    Location
    Bangladesh
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: IF Statement Issues

    Hi dear

    i have attached a book in column c you see a function and at end it takes a simple sum

    regards
    Attached Files Attached Files

+ 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. [SOLVED] Multiple IF statement issues
    By DPW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 12:29 AM
  2. [SOLVED] If nested statement issues
    By winter12 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-12-2013, 10:51 AM
  3. Replies: 4
    Last Post: 01-16-2013, 04:44 PM
  4. [SOLVED] If then statement causing value issues in Macros
    By ssciarrino in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2005, 02:10 PM
  5. HELP! - IF Statement Issues
    By MGeorges in forum Excel General
    Replies: 2
    Last Post: 02-09-2005, 07:35 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