+ Reply to Thread
Results 1 to 12 of 12

Populating rows with values based on another column

  1. #1
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Populating rows with values based on another column

    Hey guys, so i have a problem in which i need to populate the columns F G and H Based on values in first B C and D columns. in same way as mentioned in attached file automatically with a formula. So that in first column, there are invoices and the next column the receipt values are taken from receipts column until they sum to the invoice value and last receipt may be split into completing current invoice and then remaining adjusted in the next invoice and corresponding successfully to the Receipt dates as well. As for demo, file is attached. I have 30 years of data for like thousands of rows that are being done manually right now which is going to be very time consuming. If someone can help in this regard, it will be really appreciable and helpful.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Populating rows with values based on another column

    Are you still using Excel 2013?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: Populating rows with values based on another column

    Don't Exactly know which version it is? Microsoft office 365 most probably? Why? Could you find the solution?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Populating rows with values based on another column

    Because it matters. Please CHECK and UPDATE YOUR PROFILE.

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.

  5. #5
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: Populating rows with values based on another column

    Updated, please can you guide if any solution is possible to my problem.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Populating rows with values based on another column

    If the setup is changed such that bills are listed horizontally and receipts are listed vertically, then the following formula will work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: Populating rows with values based on another column

    Thank you so much. that is indeed a very different way of looking at it and a novel approach for me. However, please note that how can it be easily arranged that in one column for receipts against different bill amounts against the receipt dates also. Also in the columns, as per the other sheet, i have written the due dates. Can you please help how can the due dates be matched with those certain receipt amounts and receipt dates as mentioned in updated file. thanking you inanticipation.

    Kind Regards,

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Populating rows with values based on another column

    I would not call this easy.
    1. Month: =IFERROR(INDEX(Sheet2!B$6:B$18,MATCH(ROWS(L$5:L5),Sheet2!$A$6:$A$18,0)),L4)
    2. Bill amounts: =IFERROR(INDEX(Sheet2!D$6:D$18,MATCH(ROWS(M$5:M5),Sheet2!$A$6:$A$18,0)),"")
    3. Due date: =IFERROR(INDEX(Sheet2!C$6:C$18,MATCH(ROWS(N$5:N5),Sheet2!$A$6:$A$18,0)),"")
    4. Receipt date: =INDEX(Sheet2!F$1:OM$1,AGGREGATE(15,6,(COLUMN(Sheet2!F$1:OM$1)-COLUMN(Sheet2!E$1))/(Sheet2!F$2:OM$2<>""),ROWS(O$5:O5)))
    5. Receipts amounts:
    =INDEX(Sheet2!F$6:OM$18,MATCH(L5,Sheet2!B$6:B$18,0),AGGREGATE(15,6,(COLUMN(Sheet2!F$6:OM$18)-COLUMN(Sheet2!E$6))/(INDEX(Sheet2!F$6:OM$18,MATCH(L5,Sheet2!B$6:B$18,0),)>0),COUNTIFS(L$5:L5,L5)))
    Let us know if you have any questions.

  9. #9
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: Populating rows with values based on another column

    Well thank you so much. You must be some kind of excel champion and a lot of knowledge and expertise of years. That quite solved the problem a lot. You nailed it although saw and scrutinized it a little late.. but hats off again..

    Only however, a small problem occurring upon closer inspection in the column P of sheet 1 for the receipt date, that receipt dates are not matching exactly with the Receipts amounts from the table in Sheet 2. like it is lagging or may be not taking into account the empty rows as well. For instance, for Receipt amount till Rs. 92,054,693.72
    , they should be Jun 28th, 2013. However the receipt dates should correspond to the receipt amounts as in sheet 2 table.

    I am trying to resolve the problem with Index match, however due to multiple months and multiple receipt dates its creating a problem..

    If you can take a look as to what formula can be changed for column P to get exactly right.

    PS. thanking you once again for resolving such a major problem.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Populating rows with values based on another column

    I believe this modification to the formula in column O corrects the problem:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  11. #11
    Registered User
    Join Date
    05-14-2016
    Location
    Pakistan
    MS-Off Ver
    365
    Posts
    19

    Re: Populating rows with values based on another column

    Well Thanks man. You truly are an excel maestro. That solved the problem pretty well. Thank you for such a nice development as this task required attention and got it done because of you. Well looking forward to posting more problems and getting a gist of them as soon as i get them for more learning purposes as i have a ton of them.

    Once again all the credit in this one goes to you and thanking you for this.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,568

    Re: Populating rows with values based on another column

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 12-08-2021, 06:42 PM
  2. [SOLVED] how to insert empty rows based on column B cell values and paste above values with macro?
    By genetist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2018, 11:47 AM
  3. Replies: 7
    Last Post: 08-29-2014, 07:26 PM
  4. [SOLVED] Filter rows based on unique values in one column + specific value in another column
    By Dieneces in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 09:55 AM
  5. Grouping rows based on column values and comparing row values
    By bernborough in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2010, 10:18 AM
  6. Populating an array from a integers values column rows
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-28-2005, 07:05 PM
  7. [SOLVED] Populating fields based on previous column values
    By MMH in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2005, 05:06 PM

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