+ Reply to Thread
Results 1 to 6 of 6

2 formulas to calculate hours for every material& truck in each day

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    2 formulas to calculate hours for every material& truck in each day

    Hello Everybody,

    Required:
    I want 2 formulas:
    1-I want a formula to calculate hours for every material in each day from "Data" sheet
    2-I want a formula to calculate hours for every truck in each day from "Data" sheet

    Find the attachment
    I wish you help me
    Attached Files Attached Files
    Last edited by leprince2007; 12-21-2016 at 05:45 AM.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: 2 formulas to calculate hours for every material& truck in each day

    B4 formula, range marked in red should be changed for each column
    Formula: copy to clipboard
    =SUMIF(Data!$A$4:$A$26;Hours!A4;Data!$F$4:$F$26)


    B15 formula
    Formula: copy to clipboard
    =SUMIFS(Data!$V$4:$V$26;Data!$B$4:$B$26;Hours!B$14;Data!$A$4:$A$26;Hours!$A15)

  3. #3
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: 2 formulas to calculate hours for every material& truck in each day

    Quote Originally Posted by kasan View Post
    B4 formula, range marked in red should be changed for each column
    Formula: copy to clipboard
    =SUMIF(Data!$A$4:$A$26;Hours!A4;Data!$F$4:$F$26)


    B15 formula
    Formula: copy to clipboard
    =SUMIFS(Data!$V$4:$V$26;Data!$B$4:$B$26;Hours!B$14;Data!$A$4:$A$26;Hours!$A15)
    Thank you Mr. kasan for your help.But there are some marks in your answer:
    1-your First formula:
    You say I should change the sum range but,I want only formula only for the whole table.
    2- your second formula:
    I need a formula that don`t depend on any other calculations"totals"
    Please help me
    Last edited by leprince2007; 12-21-2016 at 07:44 AM.

  4. #4
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: 2 formulas to calculate hours for every material& truck in each day

    Up..................Up...................Up

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: 2 formulas to calculate hours for every material& truck in each day

    b4
    =SUMIFS(INDEX(Data!$E$4:$T$26,,MATCH(B$3,Data!$E$2:$T$2,0)+1),Data!$A$4:$A$26,$A4)
    b15
    =SUMPRODUCT((Data!$A$4:$A$26=$A15)*(Data!$B$4:$B$26=B$14)*(Data!$E$3:$T$3="Hours")*(Data!$E$4:$T$26))
    Try this and copy across

    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    774

    Re: 2 formulas to calculate hours for every material& truck in each day

    Well done thank you

+ 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] How to calculate overtime hours in Excel using formulas?
    By Toeknee in forum Excel General
    Replies: 3
    Last Post: 04-28-2014, 02:17 PM
  2. UDF -- Calculate board footage of material
    By ShadeTree in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2013, 12:11 AM
  3. [SOLVED] Calculate hours with predefined Working Hours and Weekend Hours
    By garciapliz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-05-2013, 11:17 AM
  4. Problems with Formulas to calculate hours worked
    By Declan McMonagle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 04:54 AM
  5. Excel formulas calculate working hours bet two dates with criteria
    By breadwinner in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-02-2013, 01:28 AM
  6. Training material for Excel formulas
    By shamianram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2011, 02:19 PM
  7. Formulas to calculate hours
    By KoolKat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2009, 11:25 AM
  8. Equation to calculate cost given material prices
    By enthrop in forum Excel General
    Replies: 3
    Last Post: 03-27-2008, 12:45 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