Uploaded May 2017 | Updated November 2026, 1 hour ago
This is a CRAZY one!
Kevin Lehrbass presented this problem:
A tall stack of mini data ranges that need to be totaled. BUT!
Only total the ranges that say "TOTAL." Ignore the ranges that are labeled anything else.
(Kevin's solution:
youtube.com/watch?v=oomf8bfcFEw)
Kevin's video shows various formula solutions. My video shows a Power Query (Get and Transform) solution using:
- Import data from another workbook
- Fill Down
- Add Custom Column
- Grouping with multiple aggregations
Download the solution:
datascopic.net/sumranges
Subscription link:
Channel Blurb:
Contact me:
Website: ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: datascopic.net/blog-2-2
This is a CRAZY one!
Kevin Lehrbass presented this problem:
A tall stack of mini data ranges that need to be totaled. BUT!
Only total the ranges that say "TOTAL." Ignore the ranges that are labeled anything else.
(Kevin's solution:
youtube.com/watch?v=oomf8bfcFEw)
Kevin's video shows various formula solutions. My video shows a Power Query (Get and Transform) solution using:
- Import data from another workbook
- Fill Down
- Add Custom Column
- Grouping with multiple aggregations
Download the solution:
datascopic.net/sumranges
Subscription link:
Channel Blurb:
Contact me:
Website: ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: datascopic.net/blog-2-2
![Try ... Otherwise: Power Querys version of Excels IFERROR
Thank to my friend Gráinne who showed me this in Power Query:
Try ... Otherwise
In native Excel we have the IFERROR function for when we anticipate errors and know what we want to do with them. In this case, we want to add the Shipped and Inventory amounts. But, if someone has put a note in the Inventory column instead of an error we want to return the Shipped amount. Pretty easy to do with Try ... Otherwise
Theres also a warning: Power Query does not treat 0, null and [blank] as the same things.
For an intro to Get & Transform (Power Query) try my Lynda/LinkedIn course:
https://www.linkedin.com/learning/instructors/oz-du-soleil?trk=insiders_28299411_learning
Website: http://ozdusoleil.com
My book: Guerrilla Data Analysis 2nd Edition
http://www.amazon.com/Guerrilla-Analysis-Using-Microsoft-Excel/dp/1615470336
My old blog: http://datascopic.net/blog-2-2 Try ... Otherwise: Power Querys version of Excels IFERROR](https://i.ytimg.com/vi/UqqeNYR0UvE/mqdefault.jpg)









