Power Query average

Tigerexcel

Active Member
Joined
Mar 6, 2020
Messages
493
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Input on left, output to the right (showing what the first record would look like) which has an average column as well as subjects separated into columns.

Book1
ABCDEFGHI
1NameResultsNameAverageUnit 1Unit 2Unit 3Unit 4
2TomABC6010:C:63, ABC6020:C:66, ABC6080:C:62, ABC6090:D:75, Tom66.5ABC6010:63:CABC6020:66:CABC6080:62:CABC6090:75:D
3FredABC2020:D:75, ABC2040:P:57, ABC2050:C:63, ABC2080:N:48,
4HarryABC6010:C:63, ABC6020:C:62, ABC6080:D:72, ABC6090:P:56,
5SueABC2020:C:62, ABC2040:C:64, ABC2050:C:63, ABC2080:C:68,
Sheet1
 
Love the economy of your code there Sandy, can you provide a little more detail regarding the third instruction where you manage to Split the data in one move?
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You mean this line?
Rich (BB code):
   Split = Table.SplitColumn(Extract, "Results", Splitter.SplitTextByAnyDelimiter({":",","}, QuoteStyle.Csv))

syntax:
Rich (BB code):
Splitter.SplitTextByAnyDelimiter(delimiters as list, optional quoteStyle as nullable number, optional startAtEnd as nullable logical) as function
Returns a function that splits text into a list of text at any of the specified delimiters.
 
Last edited:
Upvote 0
Yes, that's the one. That is not a standard function and involves some code manipulation, does it not?
 
Upvote 0
see main differences

not from the ribbon
Rich (BB code):
Splitter.SplitTextByAnyDelimiter(delimiters as list, optional quoteStyle as nullable number,optional startAtEnd as nullable logical) as function
from the ribbon
Rich (BB code):
Splitter.SplitTextByDelimiter(delimiter as text, optional quoteStyle as nullable number) as function
 
Upvote 0
see main differences

not from the ribbon
Rich (BB code):
Splitter.SplitTextByAnyDelimiter(delimiters as list, optional quoteStyle as nullable number,optional startAtEnd as nullable logical) as function
from the ribbon
Rich (BB code):
Splitter.SplitTextByDelimiter(delimiter as text, optional quoteStyle as nullable number) as function
Thanks for the clarification Sandy.
 
Upvote 0

Forum statistics

Threads
1,223,785
Messages
6,174,537
Members
452,571
Latest member
MarExcelTips

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