formula to generate reordring or resorting from given word

newbexcell

New Member
Joined
Mar 17, 2019
Messages
12
hello
need formula to generate reordring or resorting from given word
example i have this 3 word or lets say more
a1=cat b1=dog c1=bee
now i need formula to reorder them on max possible combination to be generated in bellow rows
and formula work with more words and mean generate max combination
cat bee dog

dog cat bee

dog bee cat

bee dog cat

bee cat dog

thanks
 
Re: formula to generate reordring or resorting from givin word

this is macro i use maybe problem with it?
Code:
Sub Macro4()
            '
            ' Macro4 Macro
                ' Macro recorded 18/03/2019 by bob
        '
                                
    '
    For j = 1 To 4
    For k = 1 To 4
    For l = 1 To 4
    For m = 1 To 4
    Cells(1, 6) = j: Cells(2, 6) = k: Cells(3, 6) = l: Cells(4, 6) = m
    thisperm = Cells(7, 7)
    Sum = Sum + 1
    Cells(Sum, 1) = thisperm
        Next m
            Next l
        Next k
        Next j
                End Sub
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Re: formula to generate reordring or resorting from givin word

make mytable equal to I1:J4 for test purposes, and not sure why you define the sheet - I use excel 2000 so maybe your version is different........
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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