• ‘Transposing’ columns (2000)

    Author
    Topic
    #401116

    (Edited by HansV – added

     and 

    tags to preserve indentation)

    I’ve column A listing names and B listing related codes. I want to copy this information into column D with the names followed alternately with the code. For example

    John   A1      becomes      John
    Mary   B1                   A1
                                Mary, etc..

    I’m using =OFFSET($A$1, ,MOD(ROW(A1),2)) where MOD handles the column references. How can I obtain the sequence 0,0,1,1,2,2, etc., to handle the row references? Andy.

    Viewing 1 reply thread
    Author
    Replies
    • #787739

      Does INT(ROW()/2) do what you want?

      • #788182

        Yes, thank you. It creates the sequence 0,1,1,2,2, etc.; I can just copy the first row’s details. If the rows I’m copy from and too are not the same, I can add or subtract an appropriate number.

      • #788183

        Yes, thank you. It creates the sequence 0,1,1,2,2, etc.; I can just copy the first row’s details. If the rows I’m copy from and too are not the same, I can add or subtract an appropriate number.

    • #787740

      Does INT(ROW()/2) do what you want?

    Viewing 1 reply thread
    Reply To: ‘Transposing’ columns (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: