+ Reply to Thread
Results 1 to 30 of 30

How to make rows autofill from other cells when data is entered and ignore empty cells

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    How to make rows autofill from other cells when data is entered and ignore empty cells

    What my my boss wants is for rows to auto fill when a tenant(s) pay rent on any given day and then to ignore days when no one pays.

    For example: (All on the Ledger2 Tab)

    Rows B33:AF57 is where the data will come from

    What the boss wants is for an end result like in rows A62:A68 (Done Manually)

    As you can see, Tenants paid rent on the 1st, not on the 2nd, then on the 3rd, 4th, 5th and 6th but these could be any tenant or tenants on any days.

    He does not want a row dedicated to any day he only wants them to autofill when paid

    Any help would be appreciated

    Shawn
    Attached Files Attached Files

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Rents ONLY???
    Can it be on a separate Worksheet?
    Can the separate Worksheet be recreated on demand by the press of a Button?
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    jaslake,

    Just like the example in rows 62-68 it would need to show the date, tenant and the amount for all tenants that paid on that day. It can be on a separate tab from the source information however, it needs to be on the same tab as the 1st 30 rows as it is part of a ledger that gets printed for the board

    Thank you so much for your help

    Shawn

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    =aggregate(15,7,(row($a$1:$ae$15)+10000*column($a$1:$ae$15))/($b$33:$af$57>0),rows($a$62:$a62))
    Attached Files Attached Files

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    See if this Code in the attached does as you require. It does create a New Tab (Values only) and gets recreated each time you run the Code. CTRL + g will fire the Code.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Thank you for your response, I was however unable to make it work

    Shawn

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    You make no reference to whom your speaking...if to me...
    • Open the File in Excel
    • Enable Macros
    • Press CTRL + g
    It works as designed...I just did it...

  8. #8
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    I am not sure what happened previously, but i just tried it and you are correct! Thank you very much for your help

    Shawn

  9. #9
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    You're welcome...glad I could help. Thanks for the Rep.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    jaslake,

    Again, Thanks

    I would ask, however; is it possible to rename the tab from "Temp" to something else? I have tried and was unsuccessful.

    Oh, and were the Tabs labeled 8-31 removed? If so,no problem, I will just recreate them.

    Shawm

  11. #11
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Sure, what do you wish to call it?
    is it possible to rename the tab from "Temp" to something else
    Nah, they're hidden...unhide them...
    were the Tabs labeled 8-31 removed?

  12. #12
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Jaslake,

    Ledger is what it should be called.

    Also, on each tab (1-31) there is a column where they put the tenants names and then the next column is the amount of rent paid. I have inserted a Activex Combobox, i really dont want to copy AND align that combox box 11 times for each of the 31 sheets, is it possible to copy it once and then paste it where I want it?

  13. #13
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    You already have a Sheet named LEDGER. Do you wish that Sheet to be repurposed?

  14. #14
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Why are you not using the TempCombo Code you have in Sheet 1st?
    Also, on each tab (1-31) there is a column where they put the tenants names and then the next column is the amount of rent paid. I have inserted a Activex Combobox, i really dont want to copy AND align that combox box 11 times for each of the 31 sheets, is it possible to copy it once and then paste it where I want it?

  15. #15
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Jaslake,

    I was using that ledger tab as the basis for what they have so that I had the original to refer back to. In the final version the current "Ledger and Ledger2 Tabs will be deleted.

    Im afraid I do not understand about the TempCombo Code your referring to, should I just copy that to all tabs?..........

    Shawn

  16. #16
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Well, you've got my Knickers twisted...Code I provided was dependent on your Sample File in which Sheet Ledger (2) exists...if it does not exist the Code will
    fail.

    This I can help you with...and no, your existing Code is non-operative...
    Im afraid I do not understand about the TempCombo Code your referring to, should I just copy that to all tabs?..........
    And this...
    Also, on each tab (1-31) there is a column where they put the tenants names and then the next column is the amount of rent paid. I have inserted a Activex Combobox, i really dont want to copy AND align that combox box 11 times for each of the 31 sheets, is it possible to copy it once and then paste it where I want it?
    This is what the Code does...the Source is Sheet Ledger (2)
    It can be on a separate tab from the source information however, it needs to be on the same tab as the 1st 30 rows as it is part of a ledger that gets printed for the board
    So, what have you got and where do you wish to go? What is the Source?

    I'll work with you...need to know what you have and what you wish it to be.

  17. #17
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    jaslake,

    OK, Ive attached the completed DCIR.

    I have included an "Example" tab that shows what it should look like (including page breaks so it prints properly).

    The "Example" tab is to be removed.

    The "Reference" tab is basically the same as the old "Ledger 2" tab. I would like it to be hidden (but completely unnecessary).

    I would like the new tab that will pop up ("TEMP" in your old version) be named Ledger

    Thanks again

    Shawn
    Attached Files Attached Files

  18. #18
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Please populate Days 1,3,5,7 and 9 with a couple of transactions for each of those Days. Please include transactions that will impact the creation of the "Example" Tab (which will be named "Ledger").

    Please complete the "Example" Tab (manually if necessary) such that I can understand what information you require on the "Example" Tab and, most importantly, such that I can see where it comes from.

    You have four (4) Major Headings in "Example" Tab...
    1. MONTHLY LEDGER POSTING OF D.C.I.R. (populated by Formula)
    2. MISCELLANEOUS COLLECTION DETAIL (populate manually if necessary from Days info)
    3. RENTS DETAIL (populate manually if necessary from Days info)
    4. NSF RENT CHECKS (populate manually if necessary from Days info)

  19. #19
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    I hope this is what you wanted. I have randomly populated days throughout the month. Any tenant could conceivably pay on any day of the month so it needs to work throughout the month.

    Shawn

    P.S. Sorry about your knickers
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Sorry, did not see that you needed "Example populated, here you go

    Shawn
    Attached Files Attached Files

  21. #21
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Check that...I see you attached another File...let me check it out...

    Well I've looked at the revised attachment...Thanks for the concern about my knickers...they're still pretty twisted.

    How does this table relate to the data in days 1-31...I see no correlation.
    On the 1st A&A paid rent of $1,000...this table shows $950. The table also shows M&O of $50. What is M&O and where does it come from?
    On the 2nd Banner paid rent of $1,000...this table shows nothing for the 2nd.
    On the 3rd Bay Area Herb paid rent of $1,000...this table shows 3 entries for rent paid on the 3rd.
    Etc,etc,etc...
    Please explain...
    Attached Images Attached Images
    Last edited by jaslake; 11-11-2017 at 05:04 PM.

  22. #22
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    M&O is manually entered. Im not sure why they do it this way, but they subtract M&O from amount paid ("Amount") then re-add it in ("Total") with formulas.

    I did not try put exactly the same tenants and amounts In "Example" as I did on the daily tabs as I was just trying to show it looks. The bottom line is that they reflect what is shown on the daily tabs or the "Reference" tab (wherever your referencing in your code). I thought that you were referencing the "Reference" tab in your code which is a direct correlation to the daily tabs, I only filled it for visual reference.

    In the end, it needs to look like "Example" tab with the difference being that what days what tenants pay what amounts will differ (They could all pay on the 1st, or some on the 1st, some on the 3rd some on the 10th, etc.)

  23. #23
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    If you'll make "Example" Tab reflect the information that ACTUALLY exists in the "Days" Tabs I'll continue to pursue this. Populate "Example" Tab with ONLY those items you wish the Code to extract...
    • If the Code is NOT to extract M&O then I don't wish to see it populated in "Example" Tab.
    • If the Code is NOT to extract NSF Checks then I don't wish to see it populated in "Example" Tab.
    • If the Code is to extract ONLY Rents and Deposits then I wish to see ONLY Rents and Deposits populated in the "Example" Tab.

    Please do so for Days 1, 3, 5, 7 and 9.

  24. #24
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    I have done as you asked for days 1,3,5,7 and 9

    As I do not know how you do this since my knowledge is minuscule by comparison, please do not take offense when I reiterate that what tenant will pay what amount on any given day throughout the month varies so I need the code to work for all tenants on all 31 days.

    As always I hope this finds you well and again thanks for your help

    Shawn
    Attached Files Attached Files

  25. #25
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    This Code in the attached will extract RENTS and DEPOSITS from the Days Worksheets and populate Sheet Ledger with the Data from the Days Worksheets. Ctrl + g will fire the Code.

    Please Login or Register  to view this content.


    Please note the following:

    Sheet Ledger has been protected in the ThisWorkbook Open Code...
    Please Login or Register  to view this content.
    I've added to the Workbook Named Ranges "Days" and "RentalDetails".

    The Formula Changes in RENTS DETAIL...

    Let me know of issues.
    Attached Files Attached Files
    Last edited by jaslake; 11-18-2017 at 07:01 PM.

  26. #26
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    jaslake,

    Nothing seems to be happening. I entered a tenant payment on several days hit ctrl G and nothing happens, what am i doing wrong.

    Shawn

  27. #27
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    Try CTRL + g...NOT CTRL + G...works for me.
    If you can't sort that out we'll add a Button....let me know of issues.
    Last edited by jaslake; 11-18-2017 at 11:37 PM.

  28. #28
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    OK, perfect (almost). My Excel was updating in the background, now that its done everything seems to be working Except under "Rents Detail"; between "Amount" and "Rent" there is a column labeled "1000"?
    and with the sheet protected they cant enter M&O (a manually entered cell)
    also how do I un-protect it should they need to change something, I cant give this to my boss without giving them they ability (however un wise) to change something when/if they want, especially once I leave this site.

    Shawn

    PS your the best! I appreciate your patience and what yo have done for me

  29. #29
    Registered User
    Join Date
    12-27-2012
    Location
    San Francisco, California
    MS-Off Ver
    Excel 2016
    Posts
    24

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Ok, so it appears that column labeled "1000" was and should be the deposits column which should refer to column/row K48 of each corresponding daily tab and the "Deposits Total" should sum up those entries not the rents entries.

    I have attached the original that was originally tasked to me to change for clarity.

    If its easier, they can be totaled at the bottom of each column, I just moved the totals to the side because the number of rows in each column was so fluid, there was no way of knowing how many rows there is going to be each month.

    Shawn
    Attached Files Attached Files

  30. #30
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How to make rows autofill from other cells when data is entered and ignore empty cells

    Hi Shawn

    There is no column that exhibits this in my version...you'll need to show me...
    under "Rents Detail"; between "Amount" and "Rent" there is a column labeled "1000"?
    I've un-protected the worksheets.
    Attached Files Attached Files

+ 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. [SOLVED] Ignore empty cells
    By hanif in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2017, 03:42 PM
  2. Ignore empty cells
    By ERcoder in forum Excel General
    Replies: 1
    Last Post: 09-30-2015, 03:12 PM
  3. Ignore empty cells
    By nomis65 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2014, 10:13 PM
  4. [SOLVED] Can't make AverageIF ignore empty cells
    By Mantask in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2013, 11:54 PM
  5. Replies: 2
    Last Post: 05-02-2013, 08:01 PM
  6. RAND cells but ignore empty cells with data at the top
    By muffybean in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2012, 03:31 PM
  7. Excel 2007 : Ignore empty cells? How?
    By PA0l0 in forum Excel General
    Replies: 3
    Last Post: 06-02-2011, 07:29 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