Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Matching Debits and Credits in same column


Hello. Any help would be greatly appreicated. I have Debits and Credit values
in the same row, what I would like to do is run a macro that will match them
and extract them to cell to the right. Is this possible?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Matching Debits and Credits in same column

You don't need a macro. If you have your list in column A1 downwards put this
in cell B1:

=IF(A10,A1,0)

and this in C1:

=B1-A1

Copy the formulas down as far as necessary and then change the format of the
cells to the following custom:

#,##0.00;(#,##0.00);-

Sam

"ap19" wrote:

Hello. Any help would be greatly appreicated. I have Debits and Credit values
in the same row, what I would like to do is run a macro that will match them
and extract them to cell to the right. Is this possible?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Matching Debits and Credits in same column


Sam
Thanks for your response. The problem is that the debits and credits are not
always one after each other. They can be anywhere within the group.

"Sam Wilson" wrote:

You don't need a macro. If you have your list in column A1 downwards put this
in cell B1:

=IF(A10,A1,0)

and this in C1:

=B1-A1

Copy the formulas down as far as necessary and then change the format of the
cells to the following custom:

#,##0.00;(#,##0.00);-

Sam

"ap19" wrote:

Hello. Any help would be greatly appreicated. I have Debits and Credit values
in the same row, what I would like to do is run a macro that will match them
and extract them to cell to the right. Is this possible?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default Matching Debits and Credits in same column

It doesn't matter where the debits and credits are - if you have a long
column of numbers with some positive and some negative those formulas will
put all the positive ones in the next column along and the values of all the
negative ones in the column after that.

"ap19" wrote:

Sam
Thanks for your response. The problem is that the debits and credits are not
always one after each other. They can be anywhere within the group.

"Sam Wilson" wrote:

You don't need a macro. If you have your list in column A1 downwards put this
in cell B1:

=IF(A10,A1,0)

and this in C1:

=B1-A1

Copy the formulas down as far as necessary and then change the format of the
cells to the following custom:

#,##0.00;(#,##0.00);-

Sam

"ap19" wrote:

Hello. Any help would be greatly appreicated. I have Debits and Credit values
in the same row, what I would like to do is run a macro that will match them
and extract them to cell to the right. Is this possible?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Matching Debits and Credits in same column

thanks....got it...

"Sam Wilson" wrote:

It doesn't matter where the debits and credits are - if you have a long
column of numbers with some positive and some negative those formulas will
put all the positive ones in the next column along and the values of all the
negative ones in the column after that.

"ap19" wrote:

Sam
Thanks for your response. The problem is that the debits and credits are not
always one after each other. They can be anywhere within the group.

"Sam Wilson" wrote:

You don't need a macro. If you have your list in column A1 downwards put this
in cell B1:

=IF(A10,A1,0)

and this in C1:

=B1-A1

Copy the formulas down as far as necessary and then change the format of the
cells to the following custom:

#,##0.00;(#,##0.00);-

Sam

"ap19" wrote:

Hello. Any help would be greatly appreicated. I have Debits and Credit values
in the same row, what I would like to do is run a macro that will match them
and extract them to cell to the right. Is this possible?

Thanks

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
match debits with credits allie357[_2_] Excel Programming 0 December 18th 08 01:22 AM
Macro to delete rows with matching Credits and Debits Tasha Excel Programming 9 March 7th 08 03:58 PM
Using Sumif with debits & credits Carol@Bell Excel Discussion (Misc queries) 3 June 14th 07 11:38 PM
debits and credits in one column childothe1980s Excel Programming 2 February 2nd 06 04:18 PM
incrementing rows for matching debits/credits childofthe1980s Excel Programming 2 June 25th 05 08:04 PM


All times are GMT +1. The time now is 05:20 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"