jessitarexcel
Board Regular
- Joined
- Apr 6, 2022
- Messages
- 60
- Office Version
- 365
- Platform
- Windows
- Mobile
- Web
Hello,
I have over 802 formulas that I need to update with a different suburb for each formula. This is the formula:
=IFERROR(GETPIVOTDATA("Count of Works Commenced Date",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Acacia Ridge","LGA","Brisbane City Council"),"0")
I need to replace the following value: "Suburb","Acacia Ridge" - therefore I need to update the suburb in each formula. I can do this one by one but there must be a better way. I am mucking around with Power Query and also the replace/substitute formula, however, as the suburb names vary in length, this is obviously not going to work so easily.
This is how the data is arranged:
Firstly, may I ask, is this possible in Power Query? If not, is there an adjustment I can make to a formula to take into account the varying text string lengths? I have only been given a very short timeframe to deliver this report and it will take the whole day to type and replace each of the suburbs one by one. I am sure there must be a better way than the methods I have already tried.
I have over 802 formulas that I need to update with a different suburb for each formula. This is the formula:
=IFERROR(GETPIVOTDATA("Count of Works Commenced Date",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Acacia Ridge","LGA","Brisbane City Council"),"0")
I need to replace the following value: "Suburb","Acacia Ridge" - therefore I need to update the suburb in each formula. I can do this one by one but there must be a better way. I am mucking around with Power Query and also the replace/substitute formula, however, as the suburb names vary in length, this is obviously not going to work so easily.
This is how the data is arranged:
LGA | Suburb | Works Commenced | Works Completed |
BCC | Acacia Ridge | =IFERROR(GETPIVOTDATA("Count of Works Commenced Date",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Acacia Ridge","LGA","Brisbane City Council"),"0") | =IFERROR(GETPIVOTDATA("Count of Works Completed",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Acacia Ridge","LGA","Brisbane City Council"),"0") |
LCC | Berrinba | =IFERROR(GETPIVOTDATA("Count of Works Commenced Date",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Berrinba","LGA","Logan City Council"),"0") | =IFERROR(GETPIVOTDATA("Count of Works Completed",'SAG Pivot Tables - Locked'!$EV$3,"Suburb","Berrinba","LGA","Logan City Council"),"0") |
Firstly, may I ask, is this possible in Power Query? If not, is there an adjustment I can make to a formula to take into account the varying text string lengths? I have only been given a very short timeframe to deliver this report and it will take the whole day to type and replace each of the suburbs one by one. I am sure there must be a better way than the methods I have already tried.