Find attached file
Need macro to combine stock code which are on various cells
This I have manually written AXE POLARIS DEODORANT APOLLO - 150 ML X 12
where AXE POLARIS DEODORANT is on a1 APOLLO on a2 and 150 ML X 12 is on E1
Find attached file
Need macro to combine stock code which are on various cells
This I have manually written AXE POLARIS DEODORANT APOLLO - 150 ML X 12
where AXE POLARIS DEODORANT is on a1 APOLLO on a2 and 150 ML X 12 is on E1
data on sheet 1 , see expected results on sheet 2
With Power Query
Excel 2016 (Windows) 32 bitPlease Login or Register to view this content.
A 1Merged 2AXE POLARIS DEODORANT APOLLO 150 ML X 12 3AXE POLARIS DEODORANT BLACK 150 ML X 12 4AXE POLARIS DEODORANT BLACK NIGHT 150 ML X 12 5AXE POLARIS DEODORANT COLLISION 150 ML X 12 6AXE POLARIS DEODORANT DARK TEMPTATION 150 ML X 12 7AXE POLARIS DEODORANT EXCITE 150 ML X 12 8AXE POLARIS DEODORANT GOLD 150 ML X 12 9AXE POLARIS DEODORANT MARINE 150 ML X 12 10AXE POLARIS DEODORANT MUSK 150 ML X 12 11AXE POLARIS DEODORANT DARK TEMPTATION 150 ML X 72 12AXE POLARIS DEODORANT MUSK 150 ML X 72 13AXE POLARIS DEODORANT WILD SPICE 150 ML X 72 14DOVE DEODORANT ANTI BACTERIA ( M ) 150 ML X 12
Sheet: Table1
Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").
It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.
- Follow this link to learn how to install Power Query in Excel 2010 / 2013.
- Follow this link for an introduction to Power Query functionality.
- Follow this link for a video which demonstrates how to use Power Query code provided.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Nice one need something without Power Query
Please try
or formulaPlease Login or Register to view this content.
=IFERROR(INDEX(Sheet1!$B$1:$B$98&" "&Sheet1!$B$2:$B$99&" "&Sheet1!$E$1:$E$98,AGGREGATE(15,6,ROW(Sheet1!$A$1:$A$98)/(Sheet1!$A$1:$A$98>0),ROWS(C$1:C1))),"")
or Power Query
Please Login or Register to view this content.
Last edited by Bo_Ry; 01-20-2021 at 06:04 AM.
Bo_Ry , this works for me , but please modify code to read longer range at like 200 rows , thank you
VBA code uses the whole column
Sheet1.Columns(1)
The formula can use for 998 rows, you need to adjust the row number
=IFERROR(INDEX(Sheet1!$B$1:$B$998&" "&Sheet1!$B$2:$B$999&" "&Sheet1!$E$1:$E$998,AGGREGATE(15,6,ROW(Sheet1!$A$1:$A$998)/(Sheet1!$A$1:$A$998>0),ROWS(C$1:C1))),"")
Power Query
Adjust table range to cover all your data.
Thank you Bo_Ry , it sorts my situation
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks