Consulting

Results 1 to 8 of 8

Thread: Flow chart

  1. #1
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location

    Flow chart

    Hi All,
    this is my question:
    Considered a1=a, a2=b,a3=c,a4=d, is it possible to arrange a formula that works this way: if I have a1=a, then automatically a2=b, a3=c, a4=d, if I have a1=b, than a2=c, a3=d, a4= a, if I have a1=c, then a2=d, a3=a, a4=b and so on. If some item are missing the formula should work the same way, for example it could take the characters from another column, the B, for example, b1=a, b2=c, b3=d and working in the same way. The result: a1=a, a2=c, a3= d, and so on. Finally this formula should grab the last item of the previous sequence, in the first example what is in a4, in the second example what is in a3 and should work again the same way for 31 rows.

    Thanks for any help
    sasa

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    A2: =CHAR(MOD(CODE(A1)-96,4)+97)

    copy down.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    Thanks, xld,
    But I get this error "Name?"

    sasa
    #NOME?

  4. #4
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location
    His formula is meant to go in A2 and filled down to wherever. The only hard coded char is the one in A1 which then effects change throughout the rest of the range. This works for me.

    Is that not your goal?

  5. #5
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    can you send me your file ?

  6. #6
    VBAX Mentor
    Joined
    Oct 2007
    Posts
    372
    Location

    File

    Here's the file with the formula in A2:A31 with the value 'a' in A1.

  7. #7
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    Thanks, it is ok, but as I asked I have from time to time the need to face some missing characters. Is there the possibility to have the same formula working also if from a2 to a 31 miss some characters ( one o more than one missing in a random way ?).

    sasa

  8. #8
    VBAX Contributor
    Joined
    May 2008
    Posts
    109
    Location
    Flow Chart in this way. If a then b, but if b is missing, then c, then d, and again.

    Thanks again

    sasa
    Last edited by sasa; 05-30-2008 at 09:45 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •