I need the desired output as found in the image.
Is it possible?
I need the desired output as found in the image.
Is it possible?
yes
Note: Answer gives as much info as your posting gave details
Please Read Forum Rules Before Posting
Wrap VBA code by selecting the code and clicking the # icon or Read This
How To Cross Post politely
Top Excel links for beginners to Experts
If you are pleased with a member's answer then use the Scales icon to rate it
If my reply has assistedor failed to assist you
I welcome your Feedback.
What is the solution then, mudraker?Originally Posted by mudraker
Regards,
Dilip Samuel
Hi,
See attached ...
You have attached a picture of your desired output which means you already have the sheet setup as required. Remmber seeing it on screen is just one of the many ways you can have an output.
More details of what you realy want to acheive will get you the reponse you require
Originally Posted by mudraker
Hello Mudraker,
I have column A and B with me and they are more than 1000 records. I need to achieve the same result for all 1000 entries. Obviously C is desired output.
Let me know if you can help, please.
Regards,
Dilip Samuel
Thanks a million Carim but I have more than three colors and many other sizes so the permutation and combination needs to work for more than 3 colors too and more than two sizesOriginally Posted by Carim
Column A: WHITE, BLACK, RED
Column B: A-B, C-D, QUEEN1, QUEEN2,
Desired Output in Column C: WHITE/A-B, WHITE/ C-D, QUEEN1, QUEEN2, , BLACK, RED/A-B, BLACK, RED/ C-D, QUEEN1, QUEEN2,
Misses some combinations.
Any general formula?
Regards
Dilip Samuel
Hi,
Quite difficult for me to guess you are dealing with more colors and sizes ...
Would recommend you establish a complete list of all possibilities and take a look at generic permutation code ...
http://www.j-walk.com/ss/excel/tips/tip46.htm
Please change the header title or this post will be deleted.
Headers like
Help
Can this be done etc
will be deleted on sight. You must have a header that relates to the question
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
@ VBA Noob ...
Totally agree ... have just modified it accordingly ...
Thx Carim
VBA Noob
I don't know where to copy this function, I'm very new to this. Is it in the Tools>Macro>Visual Basic Editor>Insert> Module?Originally Posted by avveerkar
I have tried doing that but I didnt get any output.
Easiest way for you to go there is open your workbook and then just record any macro. ( Start record macro, select any cell and then stop recording the macro) Then go to edit the macro you have just recorded. This wil open the module code sheet where EXCEL records the macro code. We don't need the macro you have recorded. We just need the code sheet. Delete the complete macro code and then paste our code on that sheet and you are ready to go.Originally Posted by samneric
Remember this function is now available only to this workbook.
If you want this function to be available to all workbooks ( old and the new ones you open ) then you need to copy this code to module sheet of Personal.xls or E_R.xla ( depending on which version of EXCEL you have.) Actually when you get to the module code sheet as I had suggested, the left side of the screen will have project explorer. Browsing the project explorer you wil be able to go to the desired code sheet. It has stucture just like Windows Explorer.
I think my post was deleted because I had not wrapped the code. I am giving the code again
I have also attached the file for you. Just check it out.![]()
Please Login or Register to view this content.
A V Veerkar
That thing worked for me!!! Everything done in a span of seconds!!!Originally Posted by avveerkar
Thanks A V Veerkar!!! By the way where are you from?
You are most welcome.Originally Posted by samneric
I am in Kolkata, Inda
A V Veerkar
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks