Hi,
I need to extract the unique list of column A to column D, then list the sequential numbers (as ranges separated by dash) and the individual ones in B to column E, F, etc. as shown in the attached file.
Any help is very much appreciated.
Hi,
I need to extract the unique list of column A to column D, then list the sequential numbers (as ranges separated by dash) and the individual ones in B to column E, F, etc. as shown in the attached file.
Any help is very much appreciated.
Your desired output can only be accomplished with VBA. Is the an allowable method? Do you have any experience with VBA?
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
@JBeaucaire
Yes, I have some experience with VBA, and I can implement it.
Thanks
Assuming
1) a workbook with two sheets named:
Data
Output
2) data on the Data sheet starting A1 with headers in row 1
The following macro will generate the outpout sheet in your chosen result:
![]()
Please Login or Register to view this content.
Last edited by JBeaucaire; 07-04-2016 at 11:03 AM.
Thank you JBeaucaire
I applied it on a bit larger scale of data, it throws a mismatch error at:
wsOUT.Cells(NR, Columns.Count).End(xlToLeft).Offset(, 1).Value = FirstSub & "-" & NextSub
I couldn't figure out what might be the issue.
Typo in the macro, marked in red above. It's working now.
Yes, working now.
Thank you very much
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks