Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Data source reference is not valid in pivot table wizard

47,151 views
Skip to first unread message

Oliver Marshall

unread,
Nov 17, 2007, 12:27:09 PM11/17/07
to
Hi,

I'm trying to create a pivot table in Excel 2007, something I have
done a thousand times in 2003. However, no matter what I do, the
wizard just tells me that the data source reference is not valid.

I have a table with ITEM NAME, COMPANY NAME, QNT, PRICE, LINE PRICE
etc as columns. Each column contains only one data type (ie either a
number, or a currency, or a date etc) and the whole table is set as a
table with the name SALES.

Whether I type the name of the table, or let the wizard select it, or
type a range of cells, or drag using the selector in the wizard, i
just says the same thing.

Even tables from the 2003 sheets which work fine in pivot tables dont
work in 2007 !!!

Any idea why ?

Olly

Roger Govier

unread,
Nov 17, 2007, 1:26:02 PM11/17/07
to
Hi Olly

I have had no difficulty running any of my Xl2003 Pivots in XL2007.
Are you sure you don't have any hidden un-named columns?
Try again with Data>Insert table>give it a different name>then with cursor
within the table>Data>Options>Create Pivot Table.

If that doesn't work, you can email me a copy of the workbook and I will see
if I can see what the problem is.
To mail direct send to
roger at technology4u dot co dot uk
Do the obvious with dot and at

--
Regards
Roger Govier

"Oliver Marshall" <oliver....@gmail.com> wrote in message
news:a0b4c95b-5cb7-4506...@y5g2000hsf.googlegroups.com...

Oliver Marshall

unread,
Nov 17, 2007, 1:35:58 PM11/17/07
to
Weirdest thing. I saved it with a new file name (sales1.xlsx rather
than sales.xlsx) and it worked just fine !!

How odd.


Ta anyway

Bart

unread,
Dec 19, 2007, 8:01:01 AM12/19/07
to
Maybe it has to do when you are opening the excel file from a website.
It's opening the file from a temporary folder.

When I save it somewhere with the same filename it just works!

Had the same problem.

chelse...@gmail.com

unread,
Jul 23, 2012, 4:37:39 PM7/23/12
to
I had the same problem - until I saved with a new name, it wouldn't work. Thanks for the tip!

mch...@gmail.com

unread,
Aug 24, 2012, 10:24:19 AM8/24/12
to
I had the same issue. The program that I used to export the original data puts it i n web page format, and uses underscores on both the sheet name and file name. I think one of those two reasons causes the error. Thanks to Microsoft to provide excellent explanation of the error :/.

nwi...@greenvillemetals.com

unread,
Sep 17, 2012, 4:39:02 PM9/17/12
to
On Saturday, November 17, 2007 12:27:09 PM UTC-5, Oliver Marshall wrote:
> Hi,I'm trying to create a pivot table in Excel 2007, something I have done a thousand times in 2003. However, no matter what I do, the wizard just tells me that the data source reference is not valid.I have a table with ITEM NAME, COMPANY NAME, QNT, PRICE, LINE PRICE etc as columns. Each column contains only one data type (ie either a number, or a currency, or a date etc) and the whole table is set as a table with the name SALES.Whether I type the name of the table, or let the wizard select it, or type a range of cells, or drag using the selector in the wizard, i just says the same thing.Even tables from the 2003 sheets which work fine in pivot tables dont work in 2007 !!!Any idea why ?Olly

Try saving the file under a new file name...then create the pivot table. Milo

jim.wink...@gmail.com

unread,
Oct 10, 2012, 3:29:04 PM10/10/12
to
It looks like the problem is the source data is still read only. When you save it locally it changes to read/write and creating pivots start to work again.

Dan

unread,
Feb 7, 2013, 12:35:17 PM2/7/13
to
On Wednesday, December 19, 2007 5:01:01 AM UTC-8, Bart wrote:
> Maybe it has to do when you are opening the excel file from a website. It's opening the file from a temporary folder. When I save it somewhere with the same filename it just works!Had the same problem."Oliver Marshall" wrote:> Weirdest thing. I saved it with a new file name (sales1.xlsx rather > than sales.xlsx) and it worked just fine !!> > How odd. > > > Ta anyway>

Thanks Bart - I had the same issue.

raml...@gmail.com

unread,
Apr 1, 2013, 9:11:58 PM4/1/13
to
Great help, i just resolved my same problem ... great help :)

beaumo...@gmail.com

unread,
May 20, 2013, 9:28:09 AM5/20/13
to
On Tuesday, April 2, 2013 2:11:58 AM UTC+1, raml...@gmail.com wrote:
> On Wednesday, December 19, 2007 9:01:01 PM UTC+8, Bart wrote:
>
> > Maybe it has to do when you are opening the excel file from a website.
>
> > It's opening the file from a temporary folder.
>
> >
>
> > When I save it somewhere with the same filename it just works!
>
> >
>
> > Had the same problem.
>
> >


Thanks for the tips guys, I was struggling to pivot data and it not read the source file (it transpired that I was trying to pivot webpage data). once saved to an XLS file it worked without any issues. Cheers.

pms...@gmail.com

unread,
May 23, 2013, 2:36:45 AM5/23/13
to
I got this error message when I tried to create a pivot table in a file which had the following characters within a filename:

+ ] [ ^ & ~ #

It seems like Excel doesn't like them.
Remove any of these and the error should be gone.

new...@gmail.com

unread,
Jul 4, 2013, 3:27:52 PM7/4/13
to
Thank you for the tip!

dboydj...@gmail.com

unread,
Aug 5, 2013, 10:16:48 AM8/5/13
to
On Saturday, November 17, 2007 12:27:09 PM UTC-5, Oliver Marshall wrote:
> Hi,I'm trying to create a pivot table in Excel 2007, something I have done a thousand times in 2003. However, no matter what I do, the wizard just tells me that the data source reference is not valid.I have a table with ITEM NAME, COMPANY NAME, QNT, PRICE, LINE PRICE etc as columns. Each column contains only one data type (ie either a number, or a currency, or a date etc) and the whole table is set as a table with the name SALES.Whether I type the name of the table, or let the wizard select it, or type a range of cells, or drag using the selector in the wizard, i just says the same thing.Even tables from the 2003 sheets which work fine in pivot tables dont work in 2007 !!!Any idea why ?Olly

I have several workbooks set up with pivot tables that reference a range of cells called "Database". When I converted to Excel 2007 I started getting this error message. If you go to Formulas/Name Manager I found a duplicate named range with #REF where the cell range should be - as well as the correct definition below it. Apparently the pivot tables link to the first reference. If you delete the first one the pivot tables work fine.

metalsup...@gmail.com

unread,
Nov 1, 2013, 8:34:04 AM11/1/13
to
I just discovered another reason for why the pivot table feature may not work. If you are opening an excel file from a link and don't first save the document, it will say that the pivot table reference is is invalid. Saving the document corrects the problem for me.

cody....@gmail.com

unread,
Nov 18, 2013, 4:20:47 PM11/18/13
to
I did a Save As and that worked.
- original file was a txt based .csv file
- Saved as an .xlsx

gmus...@gmail.com

unread,
Jan 8, 2014, 4:46:39 AM1/8/14
to
When opening an Excel workbook that contains square brackets in the name (e.g., "foo[1]"), the user will receive the following error message when attempting to create PivotTables using data from within the workbook. The cause is due to square brackets being invalid characters in an Excel workbook file name.

This issue may be seen when trying to open an Excel workbook from Internet Explorer. Internet Explorer creates a copy of the file in the temporary directory, renaming the file with square brackets. This can be avoided by clicking "Save," instead of "Open," when Internet Explorer presents the file to the user.

richard...@gmail.com

unread,
Mar 25, 2014, 12:47:24 PM3/25/14
to
Important safety tip: if you're also trying to add a pivot table to a file you have just opened in Outlook email it's probably in read only mode. You'll get the same error "Data Source Reference Not Valid".

You need to save the file locally and then you can create the pivot table. ; )

Top reasons for that error

* Blank Column Names
* Hidden Columns (that have blank column names)
* Column names that lead with blanks (happens with CSV files)
* File not saved locally where it can be edited (temp or Outlook folder), save it locally.

Good luck

jim.j...@gmail.com

unread,
Apr 8, 2014, 10:50:52 AM4/8/14
to
Make sure that you've either Converted it or saved it to the .xlsx file format. Then re-open and it should work. That was my solution.

thanks

unread,
Nov 16, 2016, 5:57:05 AM11/16/16
to
Thanks Oliver, weird but helped me too!
0 new messages