Consulting

Results 1 to 18 of 18

Thread: Summing time in a dynamic range?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Site Admin VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,008
    Location
    Thanks for the replies, if you look at the sheet i intend to develop for summing hours and wages by month i have titles: Date | Hours | Average Wage, i am working on a formula to put in the hours column to calculate hours for a month the formula seemed to work (but of course summed all the hours so far because of SUM(WorkedTime), the formula , i thought relied on the value in A2 to be between 2 dates to produce a result however removing the value from A2 didnt change the result.

    =IF(AND(OR($A2>="01/01/07",$A2<="31/01/07")),SUM(WorkedTime),0)
    My ideal formula would be: IF Ax contained a month name Like "January" THEN SUM WorkedTime (column E) FOR all ROWS that fall in that month, something like
    =IF(A2=MONTH,SUM(ALL ROWS MATCHING MONTH ON CLIENT SHEET),0)
    although i wish it was this simple!

    Regards,
    SImon
    Last edited by Aussiebear; 06-27-2025 at 12:27 AM.
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •