Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If there aren't a lot of data and the setup is exactly how you've displayed them above, a simple formula can solve this.</p> <p>Assuming that my raw export is in sheet <code>Base</code>, cell <code>A1</code> and my intended output starts in sheet <code>Output</code>, cell <code>A1</code>, you can use this formula on cell <code>B2</code>:</p> <p><code>=IF(INDEX(Base!$A:$A,MATCH(B$1,Base!$A:$A,0)+ROW(1:1),0)=$A2,OFFSET(INDEX(Base!$A:$A,MATCH(B$1,Base!$A:$A,0)+ROW(1:1),0),0,1),0)</code></p> <p>The premise is simple. It locates the correct hour using <code>INDEX</code> + <code>MATCH</code>, then <code>OFFSET</code>s it by the correct number of <code>ROW</code>s. This is assuming, of course, that your employees are in the same location under every hour (ie Employee 1 is always one (1) row below the hour, Employee 2 is always two (2) rows below, etc). We also add a check if the employee name matches so that it will return 0 if the employee is not there.</p> <p>Here are some screencaps:</p> <p><strong>Sample data:</strong></p> <p><img src="https://i.stack.imgur.com/8FkXL.png" alt="enter image description here"></p> <p><strong>Output:</strong></p> <p><img src="https://i.stack.imgur.com/Oa11u.png" alt="enter image description here"></p> <p>Of course, this is just the basic premise. If you have multiple dates in a sheet, it's just a matter of manipulating this formula further. Off the top of my head, locating the correct date and adding the correct offset can also work.</p> <p>Let us know if this helps or if a VBA or the Pivot option seems best.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload