Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help with Invalid cell value '#REF!' error

Hi there,

 

In Power Query Editor, is there a way to isolate the faulty cell responsible for the Invalid cell value '#REF!' error? I have removed errors & nulls and replaced values Error ->Null. I have also confirmed that there are no formulas/errors in the source sheets. The error is occuring when transposing a table from Rows to Columns. 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Are you sure there are no errors in your source sheet?  Transposing a table won't create a #REF error. Such an error will be there in the source data.

Try this:

1. Duplicate your query

2. Delete all steps except the Source & Navigation steps

3. Close & Apply - this should result in a pop-up like this telling you there are errors in your query.

qerr.png

4. Click on the View errors link in the yellow-highlighted section.

5. This creates a new query in the PQ Editor that lists the errors in your query, including the row number where the error is

qerr2.png

 

6. Check the rows for your error(s).

 

If that doesn't help you find the issue please supply your source data file.

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Your help solved my issue thanks. I had a strange one, where it turns out that a specific step was causing the error. 
When my last step was "= Table.SelectRows(#"Expanded File", each ([Timestamp] <> null))", I would get the #'REF'! error described.
When I remove that step, I no longer have the issue.
Digging deeper, it seems that there were a couple of Error values in the Timestamp column.
But could this really cause my query to break when I try and filter out null values?

 

Anonymous
Not applicable

Long story short: Adding certain steps can cause errors to develop, and OP is correct that this can be solved by removing these steps

 

Anonymous
Not applicable

Thanks Phil. Saved me a lot of effort with this solution. 🙂

Anonymous
Not applicable

Thanks very much @PhilipTreacy . Indeed, as you allude to, it was an error in the source sheet. I was overlooking several #Value! errors and fixed this with a Replace -> 0 command. You suggest a good way of isolating the errors in question. Thanks again for your response.

PhilipTreacy
Super User
Super User

Hi @Anonymous 

Are you sure there are no errors in your source sheet?  Transposing a table won't create a #REF error. Such an error will be there in the source data.

Try this:

1. Duplicate your query

2. Delete all steps except the Source & Navigation steps

3. Close & Apply - this should result in a pop-up like this telling you there are errors in your query.

qerr.png

4. Click on the View errors link in the yellow-highlighted section.

5. This creates a new query in the PQ Editor that lists the errors in your query, including the row number where the error is

qerr2.png

 

6. Check the rows for your error(s).

 

If that doesn't help you find the issue please supply your source data file.

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors