+ Reply to Thread
Results 1 to 7 of 7

Simple IF function

  1. #1
    Registered User
    Join Date
    05-17-2016
    Location
    Maastricht, The Net
    MS-Off Ver
    Office Mac 2011
    Posts
    4

    Simple IF function

    Hi all,

    I'm get a sheet every month with the hours that my employees worked.
    Now, I want a sheet to summarize the first sheet. This is (part of) the sheet with all the information that I want to use:

    Capture.PNG
    Attachment 481760
    It needs to check if Column F in the sheet2 above (the name) is the same is as in cell B4 (for example, see attachment below) in sheet 1. If the result is True, then it needs to add column H (the hours worked on 1 day) and add this value to the corresponding month in Sheet1. But all hours of that month, from a certain employee need to come in that cell.

    Capture2.PNG
    Attachment 481763

    Does anyone know how to do this? If you need more explanation, please tell me!

    Thanks for the help!
    Last edited by Hubertus C; 09-23-2016 at 08:03 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Simple IF function

    In Sheet2, add a helper column say, in column I that extracts the month name from teh date in column G... use formula in I2: =TEXT(G2,"mmmm") copied down

    Then in Sheet1, C3 use SUMIFS formula

    eg. =SUMIFS(Sheet2!$H:$H,Sheet2!$F:$F,$B3,Sheet2!$I:$I,C$2)

    copied down and across.
    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.

  3. #3
    Registered User
    Join Date
    05-17-2016
    Location
    Maastricht, The Net
    MS-Off Ver
    Office Mac 2011
    Posts
    4

    Re: Simple IF function

    Thanks for the help!

    I just don't get how I can check if the date (1-aug for example) is in the month August? I can't change the date field. Any idea?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Simple IF function

    Did you see the part where I said to add the Helper column in I. That extracts the month name, e.g. AUGUST

  5. #5
    Registered User
    Join Date
    05-17-2016
    Location
    Maastricht, The Net
    MS-Off Ver
    Office Mac 2011
    Posts
    4

    Re: Simple IF function

    Yes, I did, but I get an error when I use it:

    23lgikh.png

    And I don't understand why, I used your formula:

    jph9wz.png
    http://i66.tinypic.com/23lgikh.jpg
    http://i64.tinypic.com/jph9wz.png

  6. #6
    Registered User
    Join Date
    05-17-2016
    Location
    Maastricht, The Net
    MS-Off Ver
    Office Mac 2011
    Posts
    4

    Re: Simple IF function

    Got it, I know use:
    =MONTH(G5763)

    Thanks a lot NBVC!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Simple IF function

    does your excel use semicolon ; as separator?

+ 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] Simple IF function help, greater than and less than in same function
    By ExelDummy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2015, 03:53 PM
  2. [SOLVED] Simple IF/Or function
    By hambly in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-07-2012, 03:38 PM
  3. need help with simple if function
    By J00 in forum Excel General
    Replies: 7
    Last Post: 06-07-2012, 10:25 AM
  4. simple DB function: trying sum & vlookup w/ array function
    By dlh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2007, 02:51 PM
  5. [SOLVED] NEED HELP with simple function
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2006, 07:25 PM
  6. simple if then function
    By N Harkawat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  7. simple if then function
    By amy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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