ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using Pivot table to fill spreadsheet by date (https://www.excelbanter.com/excel-discussion-misc-queries/216378-using-pivot-table-fill-spreadsheet-date.html)

p2andr

Using Pivot table to fill spreadsheet by date
 
Hello,

I am using a pivot table to fill a timesheet in the same workbook.

The data consists of date, billable (y or n), time in, time out, month, day,
year, total hours.

The timesheet has a cell each for the month and year. The dates are in a
grid configuration. I have used getpivotdata to extract the number of
billable and nonbillable hours in the spreadsheet but Excel seems very
confused about the date issue.

This formula works fine =+GETPIVOTDATA("time",'Pivot
Table'!$A$3,"Date",DATE(2009,1,5),"Bill?","N") but I would like to not have
to enter the date in the formula. I have tried using "month", month(a8) {the
month cell}, day(c15) {the day cell} and using either of these causes an
error message. Somehow even though the pivot table data includes each of the
components of a date, it doesn't match to the cell reference. I have tried
using "month", month(1) and I still get a =REF error message.

I am confused.

Thanks.


All times are GMT +1. The time now is 11:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com