Extracting and Transposing Values

arundharmarajan

New Member
Joined
Jun 12, 2018
Messages
6
After the brilliant solution to my thread https://www.mrexcel.com/forum/excel-questions/1059039-listing-all-values-within-range-values.html (which I am still working out on understanding the code), if there is more than one requirement in the sheet, is this possible??



If Value A, Value B, List for B(the entire possible values in B sorted) is provided, with the click of a button, Desired Output - A&B should be generated.



jfLtYTS.jpg




Also, when Value C and Value D are provided, with another button, Desired Output - C&D should be generated.



Zu5gGkD.jpg




The number of rows will obviously will vary and the data will be in two different workbooks/sheets.

With my very amateur knowledge in macro, I could concatenate few values for desired output for A&B, but blank cell and the "0000" becomes 0, thereby messing with the output.

Hoping for a solution and better understanding of macros.

Thank you very much.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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