+ Reply to Thread
Results 1 to 2 of 2

Adding a Lookup Formula to Sumif formula's "range"

  1. #1
    Registered User
    Join Date
    01-11-2018
    Location
    Pretoria, South africa
    MS-Off Ver
    Excel 2016
    Posts
    1

    Adding a Lookup Formula to Sumif formula's "range"

    Good day all,

    I'm new to these Forums.

    I hope you will understand my question.

    I have to submit a log of my hours worked in certain aspects of my profession to our local board in order to be accredited with a professional practice number.
    I have made a time sheet that I log the hours I work on different tasks. (which works fine)

    I want to summarize this time sheet to show how many hours I have worked on each task in a different spreadsheet.
    Each tab in my spread sheet has the months of the year and then in the sheet there are the weeks listed at top and tasks on the left.

    Now, what I want to do is have excel look up the week(range), find the corresponding task(criteria) and sum the hours of that specific tasks in that week only.

    i.e in week 1 I spent 8 hours meeting with clients and so on.

    I originally used a standard sumif formula. but had to manually reselect the corresponding week's range to sum, which is time consuming.

    I have attached the 2 spreadsheets.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Adding a Lookup Formula to Sumif formula's "range"

    Welcome to the forum.

    Edit: Before you do any of what's below, re-save your 'SACAP Eloise' file in .xlsx format - the formula below isn't available in pre-2007 file versions.

    You can use SUMIFS, but first you need to do a couple of things.
    1. Check that the wording in column A of the SACAP Eloise 2018 file is exactly the same as in column J of the Time Sheet Studio121 2018 file. In A12, statutory is mis-spelled.
    2. Un-merge all the cells in column A of the Time Sheet Studio121 2018 file and enter the week label in each row. So, 'Week 1' in cells A11:A17, 'Week 2' in cells A18:A26, etc.
    (It's a good rule to avoid merged cells when you're wanting to use complicated formulae - they mess up the ranges.)
    3. Format all the time cells in the SACAP Eloise 2018 file (columns B to F) with the Custom number format [h]:mm. If you don't want zeroes to show, then use this Custom format instead: [h]:mm;[h]:mm;;@ (or [h]:mm;[h]:mm;;@ if you want a dash (-) to show for zeroes). The times will now show as 9:30, etc.
    4. Have both files open, saved in the same folder.

    Now, in cell B3, enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    What it does is Sum column G in the time sheet file but only if both the criteria are met: time sheet col A is equal to SACAP row 2 (the week) and time sheet col J is equal to SACAP column A (the task description).

    Hope that helps.
    Last edited by Aardigspook; 01-12-2018 at 08:42 AM. Reason: Add note about file format
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-07-2017, 05:14 PM
  2. [SOLVED] Help with lookup formula to return "Available" or "Unavailable" based on last entry
    By AntonyCole1979 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-07-2017, 12:28 PM
  3. [SOLVED] Clean up If/Then formula, adding in "isblank" range
    By snuffnchess in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-08-2016, 02:16 PM
  4. "Lookup" formula for a range of values (instead of a value)
    By thisssisme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2014, 02:39 PM
  5. solution for the blank cell using the IF function
    By ragnaedge in forum Excel General
    Replies: 4
    Last Post: 08-23-2013, 11:03 AM
  6. [SOLVED] Problem adding a "Row" formula to a "lookup" formula
    By Portuga in forum Excel General
    Replies: 3
    Last Post: 10-08-2012, 11:58 AM
  7. Formula for adding week-end "idle time" to date range
    By bradlessard in forum Excel General
    Replies: 2
    Last Post: 02-12-2012, 11:30 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