Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
myty
 
Posts: n/a
Default Generate Payment Statement


I'm hoping I can do this with functions but it may need to be a macro.
I've been looking at it for awhile now and can't work it out.

I have two columns. Column A has the dates of each day, Column B has a
figure next to the date that an amount was paid. Some days have nothing
in column B.

A.........B
1/1/05 10
2/1/05
3/1/05 5
4/1/05 5
5/1/05

I have to produce a statement of payments received. Therefore I want a
listing of the date with the amount received to be generated
automatically.

from above:
1/1/05 10
3/1/05 5
4/1/05 5

Any help would be very much appreciated.

thanks

adrian


--
myty
------------------------------------------------------------------------
myty's Profile: http://www.excelforum.com/member.php...o&userid=24592
View this thread: http://www.excelforum.com/showthread...hreadid=381844

  #2   Report Post  
anilsolipuram
 
Posts: n/a
Default


select row 1 go to, data-auto filter

go to payment, drop down box select "non blanks"


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=381844

  #3   Report Post  
myty
 
Posts: n/a
Default


Thanks for the reply.

This method still involves copying and pasting to other cells. I was
hoping for a solution that filled the other cells automatically.


--
myty
------------------------------------------------------------------------
myty's Profile: http://www.excelforum.com/member.php...o&userid=24592
View this thread: http://www.excelforum.com/showthread...hreadid=381844

  #4   Report Post  
anilsolipuram
 
Posts: n/a
Default


backup you workbook before trying this macro

This will copy cells with payment values in column e


Sub macro()
Dim i, c, c1 As Variant
i = 0
c = 2
c1 = 1
While i = 0
If (Range("a" & c).Value = "") Then
i = 1
Else
If Range("b" & c).Value = "" Then
Else
If (c1 = 1) Then
Range("a1:b1").Select
Selection.Copy
Range("e" & c1).Select
ActiveSheet.Paste
c1 = c1 + 1
End If
Range("a" & c & ":" & "b" & c).Select
Selection.Copy
Range("e" & c1).Select
ActiveSheet.Paste

c1 = c1 + 1
End If
End If
c = c + 1
Wend
End Sub


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=381844

  #5   Report Post  
anilsolipuram
 
Posts: n/a
Default


Back up your workbook before trying this macro
simpler version of macro, using auto filter, it will copy to column e


Sub Macro10()
Rows("1:1").Select
Selection.AutoFilter
Range("B1").Select
Selection.AutoFilter Field:=2, Criteria1:="<"
Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Range("e").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.AutoFilter
End Sub


--
anilsolipuram
------------------------------------------------------------------------
anilsolipuram's Profile: http://www.excelforum.com/member.php...o&userid=16271
View this thread: http://www.excelforum.com/showthread...hreadid=381844



  #6   Report Post  
myty
 
Posts: n/a
Default


Great, thanks for that. I'll play with it a bit but should do the
trick.


--
myty
------------------------------------------------------------------------
myty's Profile: http://www.excelforum.com/member.php...o&userid=24592
View this thread: http://www.excelforum.com/showthread...hreadid=381844

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Loan Schedule with Balloon Payment R0bert Neville Excel Worksheet Functions 7 April 22nd 23 12:08 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Trying to Manipulate a Mortgage Payment (HELP!) DC Excel Worksheet Functions 1 February 4th 05 05:49 PM
how do you get a positive number payment with a mortgage payment . sam Excel Worksheet Functions 1 February 2nd 05 05:32 AM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 11:05 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"