Dear K.Sri, I just learning for macro but may can help you
Please try Sub Macro1() Range("R4").Select ActiveCell.FormulaR1C1 = "=IF(RC[-4]=""debit"",RC[-7],"""")" Range("S4").Select ActiveCell.FormulaR1C1 = "=IF(RC[-5]=""credit"",RC[-8],"""")" Range("R4:S4").Select Selection.Copy Application.CutCopyMode = False Selection.AutoFill Destination:=Range("R4:S105") Range("R4:S105").Select Columns("R:S").Select Selection.Copy Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _ :=False, Transpose:=False Application.CutCopyMode = False Range("R4").Select End Sub or you can try to use if function for easy to understand like this cell in column R =IF(N4="debit",K4,"") cell in column S =IF(N4="credit",K4,"") then copy to cell that you want the result. Hope it can help you. Worawat 2010/2/1 Sri Jai <jaisri1...@gmail.com> > Dear All, > > > > Can someone please help me on the attached? > > > > On column K are the amounts and on column N it reflects debit and credit. > > > > I want to run a macro which reflects (the data in Columns k&N)to reflect > like the way i have indicated in column R & S on the attached splitting the > debit and credit amounts>please help > > > > Thanks a ton for the help > > > > Sri > > > > > > > -- > > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at > http://www.excelitems.com > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > > To post to this group, send email to excel-macros@googlegroups.com > If you find any spam message in the group, please send an email to: > Ayush Jain @ jainayus...@gmail.com > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 6,700 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group at > http://groups.google.com/group/excel-macros/subscribe > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 6,700 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe