SOLVED
Snake Sequencing
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
sheathington
6 - Meteoroid
‎11-29-2023
03:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I have an assignment of data that has been ranked 1 through however many records there are. I want to assign a snaking sequence of A/B and then B/A in order of rank, so it would look something like this:
Rank | A/B |
1 | A |
2 | B |
3 | B |
4 | A |
5 | A |
6 | B |
7 | B |
8 | A |
9 | A |
10 | B |
Solved! Go to Solution.
Labels:
4 REPLIES 4
CoG
14 - Magnetar
‎11-29-2023
05:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is it guaranteed that A and B are equally distributed in the table? or are you adding the A's and B's to the data?
16 - Nebula
‎11-29-2023
05:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Please find the attached WF to do that. Attached WF accepts any length of character not only A/B but also A/B/C/D....whatever.
15 - Aurora
‎11-29-2023
05:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Does this formula work for you?
A/B = IF Mod([Rank], 4) / 4 < 0.5 THEN "A" ELSE "B" ENDIF
‎11-30-2023
07:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you gawa! Your solution worked perfectly.
