Excel PowerQuery

ElRugg

New Member
Joined
Jun 26, 2020
Messages
16
Office Version
  1. 2016
Platform
  1. Windows
I have a list of items and categories in a worksheet in Excel on Sheet 1. I get 2 different monthly reports and use Power Query to adjust and combine each new month into Sheets 2 and 3 (1 for each report). I use the merged queries option to "vlookup" the items from the report and match the categories.

I have 1 item where for whatever reason the category will not transfer over. Every other item correctly and even does this item correctly on the Sheet2 query, just not on Sheet3. I have tried copying the item directly from the invoice into the Sheet 1 list. I have added additional items at the bottom and it updates correctly so not Sheet1 is limited for what rows it's considering. I've already done Query steps to trim and case match the text.

I'm fresh out of ideas at this point and would appreciate either suggestions, or workarounds. I've thought about doing a macro like if Column A = "this item" then Column B = "Category" but there's gotta be an easier way?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Check the cells actually equal one another (example = Sheet1!A1 = Sheet2!B1). If it returns false then check the length of value in the cells that should match one another. One may have one or more invisible extra characters. If the LEN()s are the same then check the ascii code of each character using CODE(MID()) and make sure each character matches (character 1 through LEN()). If the lengths are the same and each character is the same then the =A1 = B1 check should have returned TRUE.
 
Upvote 0
Check the cells actually equal one another (example = Sheet1!A1 = Sheet2!B1). If it returns false then check the length of value in the cells that should match one another. One may have one or more invisible extra characters. If the LEN()s are the same then check the ascii code of each character using CODE(MID()) and make sure each character matches (character 1 through LEN()). If the lengths are the same and each character is the same then the =A1 = B1 check should have returned TRUE.
The test does come back true.
 
Upvote 0
I got it!

Within the Power Query steps, I trimmed the column before the merge but didn't have the change text (all uppercase) until after. When I copied from the power query result table to the groups, it was after that uppercase function happened and was a match but the raw data wouldn't have had that yet. Quick reorder of the functions and looks good to go now.

Thanks for letting me talk this out.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,703
Messages
6,173,973
Members
452,540
Latest member
haasro02

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