+ Reply to Thread
Results 1 to 18 of 18

Auto fill consecutive row after processing from different sheet.

Hybrid View

  1. #1
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Auto fill consecutive row after processing from different sheet.

    use this formula in H2 in sheet Sell:

    =F2-SOMPRODUCT((Buy!$B$2:$B$30=$C2)*(Buy!$D$2:$D$30=$D2)*(Buy!$F$2:$F$30))



  2. #2
    Registered User
    Join Date
    12-29-2010
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Auto fill consecutive row after processing from different sheet.

    Quote Originally Posted by snb View Post
    use this formula in H2 in sheet Sell:

    =F2-SOMPRODUCT((Buy!$B$2:$B$30=$C2)*(Buy!$D$2:$D$30=$D2)*(Buy!$F$2:$F$30))
    snb, your formula is trying to get a result from calculating the weight if the coupon and product type has a match between "Buy" and "Sell", am I correct?
    The formula I made in "Sell" H2 is correct in condition if we processed in the same rows.

    Based on your formula, Thanks to you I came to this:
    =G2-SUMPRODUCT((Buy!$B$2:$B$30=$C2)*(Buy!$D$2:$D$30=$D2)*(Buy!$I$2:$I$30))
    Now.. moving on to "Cash Balance"
    How do we fill the date, from "Buy" and "Sell sheets to A2:A32 automaticaly?
    Each total from K2:K32 in "Buy" goes to Output
    Each total from I2:I32 in "Sell" goes to Input.
    Attached Files Attached Files

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Auto fill consecutive row after processing from different sheet.

    cfr. the attachment
    Attached Files Attached Files
    Last edited by snb; 01-03-2011 at 04:25 PM.

  4. #4
    Registered User
    Join Date
    12-29-2010
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Auto fill consecutive row after processing from different sheet.

    Hi snb,
    What I'm trying to make will look like the this attachment.
    So, total from "Buy" or "Sell" will be put in sequence by the date in "Cash Balance".
    Each will be separated in different row.
    Attached Files Attached Files

  5. #5
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Auto fill consecutive row after processing from different sheet.

    cfr. the attachment.

    In the balance sheet all data form sell and buy will be inserted.(64 rows)
    After that you can sort this balance sheet (A1:F65) on date (menu/Data/sort).
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-29-2010
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Auto fill consecutive row after processing from different sheet.

    Quote Originally Posted by snb View Post
    cfr. the attachment.

    In the balance sheet all data form sell and buy will be inserted.(64 rows)
    After that you can sort this balance sheet (A1:F65) on date (menu/Data/sort).
    That won't work, snb. After I sort it out, the datas were mixed with each other.
    I need to keep every total from each dates (even the same date) to be in different rows.

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Auto fill consecutive row after processing from different sheet.

    That will definitely work if you sort correctly:
    select A1:D63, menu/Data/sort

    or using a macro

    Sub sort_snb()
      Sheets("Cash Balance").Range("A1:D63").Sort Range("A2"), , , , , , , xlYes
    End Sub

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1