Help with power query

Excelnewie

New Member
Joined
Nov 13, 2017
Messages
26
Office Version
  1. 2016
Platform
  1. Windows
Hi I hope someone can help
I have a spreadsheet that draws data from other sheets through a power query.

Questions:
1)How do I autofit row height each time the query runs?
2) can I include data on the top of the source sheet above the data table and not have it included in the final query?

Any help is appreciated thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
1. row height will autofit automatically after refresh

2.
a) your additional data is above source data table?
b) your source data table contain additional data?

@a) select only source data table
@b) after load source data table into PQ editor - remove TopN rows and stay with what you need
 
Upvote 0
Thanks for your reply

1. Row height doesn't reset, column width does but doesn't wrap the text, just goes very wide

2a applies How do I include just the table and not the cells above? Those cells do not show in my power query editor
 
Upvote 0
row height autofit automatically as I said, column width depends of your table settings:

screenshot-75.png


@2a. post example and expected result

beforeafter.jpg
 
Last edited:
Upvote 0
1. Thank you! That's what I needed ��

2a. Having trouble posting snip of table I created source table in B3:M15 in 3 different sheets all in the same folder. Used power query to combine these table headings are my power query editor table headings. Then I put a formula in C5 to count the number of rows. Query gives a nil result if the formula is there if I delete the formula, query runs perfectly hope that makes sense
 
Upvote 0
don't mix PowerQuery and formula(s)
if you want count rows use CountRows from PQ editor or any other function from PQ

post a link to shared excel file with your raw data which reflect structure and type of data and expected result. use OneDrive, GoogleDrive or any similar
 
Upvote 0
Will try to post...

I want the formula to count rows on the source table only, not the query result. Is that possible?
 
Upvote 0
try formula outside of the source table eg. O3

or

after load source table (with your formula in E2 / E3 ???) just remove this column in PQ editor
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top