Forum Discussion

RanzieJ's avatar
RanzieJ
Copper Contributor
Aug 11, 2022
Solved

EXCEL - HOW TO MOVE MULTIPLE DATA (ONLY) FROM COLUMN TO OTHER COLUMN BLANK

 

Good day, can i ask for help regarding my problem in excel? 


i want to move/cut data from "Credit account" to the left  "Debit Account" . I have a hundred transactions 😞 i cant move it one by one. 

 

Thank You!

 

 

 

  • Sekoleyte's avatar
    Sekoleyte
    Iron Contributor

    RanzieJ 

     

    Hi there.

     

    Filter the credit account and choose the range like this:

    Then fill them left like that:

     

     

  • Harun24HR's avatar
    Harun24HR
    Bronze Contributor

    RanzieJ You need VBA coding to cut/move data. Give a try on below sub. Assuming you Credit Account column is B. You have to adjust Range("B2:B200") for you real case.

     

    Sub MoveData()
    Dim rng As Range
    
        For Each rng In Range("B2:B200")
            If rng <> "" Then
                rng.Offset(, -1) = rng
                rng.Clear
            End If
        Next rng
    
    End Sub

     

     

    • RanzieJ's avatar
      RanzieJ
      Copper Contributor
      Woahh, i think this is too advance. Can you teach me step by step, please? 😞
      • sivakumarrj's avatar
        sivakumarrj
        Brass Contributor

        RanzieJ 

        Simply select Column B & Column C,

        Under Data heading  Click filter button

        Select Column B with Blanks

        Next Select Column C with Cash or Cash in Hand

         

        Now it will display with rows of Cash 

        Type formula in Cell B5 = C5(Cash)

        then copy formula and then do special paste with values

        after that you delete the b column

         

         

Resources