+ Reply to Thread
Results 1 to 8 of 8

Calculation including table data, text and numbers

  1. #1
    Registered User
    Join Date
    06-07-2019
    Location
    UK
    MS-Off Ver
    O365
    Posts
    20

    Calculation including table data, text and numbers

    Hi,

    I have a sheet where i'm assigning jobs to workers. I have the following

    - In B5:B14 - Job list
    - In F5:F14 - The expected hours to be taken for each of the above jobs.
    - In H5:J14 - I have created a list of all workers initials that may attend site. I want to select the person who has been assigned the work in one of three boxes on this row. There are three boxes as some tasks take up to 3 people to complete. Sometimes only 1 person will complete a task.

    and

    - In M8:M18 - A pivot table with a list of workers full names on site for that day
    - In N8:N18 - Within the same pivot table above, the hours that each worker is on site for each day
    - In O8:O18 - I want to put the hours remaining for each engineer after they have been assigned the day's work. This is the calculation i'm struggling with, which i'm hoping to do based on the above mentioned fields.

    Is it possible to subtract hours of work to be assigned from an workers time on site with this method?

    To add something further to the mix; on some days there might only be 5 jobs on the list, on others there might be 15. Also, on some days there might only be 2 people on site, on others, there might be 6 or 7.

    Many thanks for your help in advance.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Calculation including table data, text and numbers

    Hi and welcome,
    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    06-07-2019
    Location
    UK
    MS-Off Ver
    O365
    Posts
    20

    Re: Calculation including table data, text and numbers

    Hi,

    Thanks for coming back to me.

    Please see attached the example as requested.

    Cheers
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-07-2019
    Location
    UK
    MS-Off Ver
    O365
    Posts
    20

    Re: Calculation including table data, text and numbers

    Hi, is anyone able to assist with this at all?

    Many thanks

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Calculation including table data, text and numbers

    Hello jackjstokes and Welcome to Excel Forum.
    For column G try: =PRODUCT(F5,COUNTA(H5:J5))
    As to the "Hours remaining without work" see if the following helps.
    1. Populate an "Assigned Hours" column (O) using: =SUMPRODUCT((H$5:J$19=M6)*(F$5:F$19))
    2. Use the following to populate the "Hours remaining..." column: =N6-O6
    Note that the formula in column O may be moved and/or the column may be hidden for aesthetic purposes.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    06-07-2019
    Location
    UK
    MS-Off Ver
    O365
    Posts
    20

    Re: Calculation including table data, text and numbers

    Quote Originally Posted by JeteMc View Post
    Hello jackjstokes and Welcome to Excel Forum.
    For column G try: =PRODUCT(F5,COUNTA(H5:J5))
    As to the "Hours remaining without work" see if the following helps.
    1. Populate an "Assigned Hours" column (O) using: =SUMPRODUCT((H$5:J$19=M6)*(F$5:F$19))
    2. Use the following to populate the "Hours remaining..." column: =N6-O6
    Note that the formula in column O may be moved and/or the column may be hidden for aesthetic purposes.
    Let us know if you have any questions.
    JeteMc - Thank you! This is great and was exactly what i was looking for. I really appreciate your help.

    Have a beer on me!

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Calculation including table data, text and numbers

    You're Welcome and thank you for the feedback (and the mug). Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  8. #8
    Registered User
    Join Date
    06-07-2019
    Location
    UK
    MS-Off Ver
    O365
    Posts
    20

    Re: Calculation including table data, text and numbers

    Problem SOLVED

+ 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: 10
    Last Post: 04-05-2019, 02:32 PM
  2. [SOLVED] Converting text to value & including in sum calculation.
    By HAGTAGL in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2018, 11:04 AM
  3. Data Validation exactly 10 numbers including leading 0's
    By sdumitrescu11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2016, 03:05 PM
  4. Replies: 7
    Last Post: 08-12-2015, 07:36 PM
  5. Macro to delete all text and characters BUT numbers (including decimals) from excel
    By coolruler in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-23-2015, 01:20 AM
  6. problem autofiltering text (numbers) including comma
    By petca059 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-12-2014, 10:04 AM
  7. Calculation including blank cells in a pivot table
    By Saturn in forum Excel General
    Replies: 13
    Last Post: 03-05-2012, 10:55 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