+ Reply to Thread
Results 1 to 11 of 11

Help with formatting Formula using IF statement

  1. #1
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Question Help with formatting Formula using IF statement

    HI All,

    Hoping someone can advise/help.

    This is my first time programming an excel sheet.

    I have been given the task for creating a tool for work.
    I am trying to create a tool where a manager can input hours worked in someone's last month.

    I need to format the following:
    IF the Date of Leave =<5 and pay cycle is month, and answered "Yes" to payroll cut off, then plot previous month + first days of following. E.g if colleague is leaving on the 5th October show from 1st Sept to 5 October. If NOT then plot only days needed, e.g. if they are leaving on the 7th October it would only show 1-7th October as Sept was a normal pay period.

    If someone can offer some guidance, it would be appreciated! + any tips of learning Excel.

    Thanks

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Help with formatting Formula using IF statement

    Not sure what yr workbook looks like, but I assume there will be some kind of table holding the hours worked of employees per month.
    The attached sample shows some formulas using IF to calculate what you need (as far as I understand).
    Attached Files Attached Files
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Re: Help with formatting Formula using IF statement

    HI All,

    This is what my spreadsheet looks like at the moment

  4. #4
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Re: Help with formatting Formula using IF statement

    Thanks so much! But I don't think i explained myself very well!
    The hours inputted with be for each day in the month.

  5. #5
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Help with formatting Formula using IF statement

    It shouldn't really be a problem whether hrs are entered per day, per week or per month. Could probably be done with a similar formula.
    Can you upload yr workbook and post any specific problems you're facing. If any of course
    Last edited by Tsjallie; 09-26-2018 at 02:18 PM.

  6. #6
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Re: Help with formatting Formula using IF statement

    Not sure if my first reply is showing:


    I am trying to format the following:

    IF(AND(D42=<5,D20=”Monthly”, D21=”Yes”),D43-1, D43)

    IF(D20=”Weekly”, D19-D47,””)

    I am trying to say:

    IF(AND(The Leave Date Integer = < 5, AND, Pay Cycle = “Monthly” and answer to payroll cut off is “Yes”), then do month leave integer-1, if not just use month)

    IF(Pay Cycle=”Weekly”, do Leave date month- week commencing).

    From the above formula I want it to plot the correct days.

    Hope this makes sense! It wouldn't let me upload my spread sheet!

  7. #7
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Help with formatting Formula using IF statement

    To help you construct a working formula is better to have the workbook so I can see what excatly you're entering in the cells you mention.
    To upload yr workbook:
    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    In the upload window select the workbook and click [Upload].
    When the file is uploaded click [Close window].
    Last edited by Tsjallie; 09-27-2018 at 07:36 AM.

  8. #8
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Re: Help with formatting Formula using IF statement

    Please see attached, thanks for your help!
    Attached Files Attached Files
    Last edited by Eva10101; 09-27-2018 at 11:12 AM.

  9. #9
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Help with formatting Formula using IF statement

    OK. I think this formula could calculate the days to plot:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    And some suggestions for other formulas:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Tsjallie; 09-27-2018 at 04:05 PM.

  10. #10
    Registered User
    Join Date
    09-26-2018
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    11

    Re: Help with formatting Formula using IF statement

    Thanks so much!

  11. #11
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Help with formatting Formula using IF statement

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] IF statement clause and SUMIF statement formula help!!!!
    By djmatok in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 10-28-2015, 04:48 PM
  2. [SOLVED] Conditional formatting with an AND statement
    By trisoldee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2014, 02:23 PM
  3. [SOLVED] VBA If Statement Formatting
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-19-2014, 11:32 AM
  4. [SOLVED] Formula for Income Statement in financial statement
    By Zunit in forum Excel General
    Replies: 6
    Last Post: 07-02-2012, 02:21 PM
  5. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  6. Conditional Formatting statement
    By thomas.szwed.uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2008, 10:23 AM
  7. [SOLVED] =IF Statement formula or conditional formatting
    By Abi in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2005, 10:06 AM

Tags for this Thread

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