Updating formulae using Power Query

tiredofit

Well-known Member
Joined
Apr 11, 2013
Messages
1,924
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Further to my initial post here:

Code:
https://www.mrexcel.com/board/threads/updating-formulae-fast.1239419/page-2#post-6073100

can someone tell me if Power Query can help?

To summarise, I have a workbook with a worksheet containing many columns.

The former columns are constants, the latter columns refer to the former columns, as well as to other worksheets within the workbook.

Updating the formulae by selecting a row, clicking fill and dragging to row 100 is fairly fast.

However, dragging to row 1000 is very slow.

Can Power Query help with this kind of problem or must the design of the workbook and / or worksheet be changed first?

Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
First thought is: " Yes, PQ can help. " As always it's more about context. F.e. how complex are those fxs? What functions are used? Do they only work on row level of not?
A sample set is useful here.
 
Upvote 0
First thought is: " Yes, PQ can help. " As always it's more about context. F.e. how complex are those fxs? What functions are used? Do they only work on row level of not?
A sample set is useful here.
The formulae are:

SUMIFS, MATCH, VLOOKUPS

and some refer to other worksheets within the same workbook.
 
Upvote 0
Vlookups you can do with PQ (merge queries), sumifs is likely to be a group by. Match is a kind of lookup, so probably merge again.

I would keep the "raw data" and the lookup tables externally to my result workbook.
Depending on the case, do some merges and group by in PQ.
Alternatively maybe build a data model to link the working data with my lookup tables. Does not need any vlookup kind of thing. This way I can do data crunching with (power) pivots.

Inside Excel, on the data ribbon there is something call "relationships".

1686935349633.png


Inside the data model it looks like this, simply select the field to link from the data table to the lookup table.

1686935285108.png
 
Upvote 0
Vlookups you can do with PQ (merge queries), sumifs is likely to be a group by. Match is a kind of lookup, so probably merge again.

I would keep the "raw data" and the lookup tables externally to my result workbook.
Depending on the case, do some merges and group by in PQ.
Alternatively maybe build a data model to link the working data with my lookup tables. Does not need any vlookup kind of thing. This way I can do data crunching with (power) pivots.

Inside Excel, on the data ribbon there is something call "relationships".

View attachment 93762

Inside the data model it looks like this, simply select the field to link from the data table to the lookup table.

View attachment 93761
Thanks for your detailed explanation.

I will try it and see how far I get.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,580
Members
452,653
Latest member
craigje92

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