• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

String Order Formula/Macro

Steve Morris

New Member
I am trying to apply a formula or macro to convert each string in a particular order based on days of week (MTWRFSU). For the first example, it should be MTS to follow the pattern. Each cell could have anywhere between 1 and 7 letters.

TMS
FMS
WFUMS
SM
RMT
FSMT
FMT
SMT
MT
WMT
MFT
RSMTF
MTF
WSMTF
FMTSU
WSMTFU
FMTU
MRTFU
TMFU
SMTFU
RSMT
WMTR
WFMTR
SMTRF
WMTRF
WFMTRSU
 
Last edited:
Add/Delete/Change 'strings' to column B
Press [START]
Answer questions
You'll see the result.
 

Attachments

  • S_O.xlsb
    38.3 KB · Views: 6
@NARAYANK991
The default value was wrong in the code (Fri <> Sat).
That value can user change as user wants.
I changed the default value.
+ Shows the Default value.
> Animation has changed.
 

Attachments

  • S_O.xlsb
    42.2 KB · Views: 3
Last edited:
Back
Top