+ Reply to Thread
Results 1 to 26 of 26

Looking for help with daily auto population of fields

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Looking for help with daily auto population of fields

    I would like to use a book similar to the one attached to track daily sales of individual products. As seen in the attachment I would copy and past a daily update that is emailed to me every workday to the tab named load daily here. From this I would like to have the other two sheets auto update.
    For tab 1 (Inventory List) I would like to add any new data including new items. I know some of the fields would still be blank but they would be filled manually. I would also like the Quantity in Stock column to move to Previous Day Onhand column. Finally on the tab marked Daily Sales I would like to see auto population of rows that changed by date. I would like to keep this data to complete a running total so new data would have to load in the next empty row. I would like negatives that are caused by inventory receipt to equal 0 so it doesn't subtract from sales but when the next day loads I would like to continue tracking sales.
    The list of items I am working with is about 500 items so I don't want to auto populate every item everyday.

    I am running Excel 2016 now

    I hope I have enough detail here and hope the attachment is on this post
    Thank you in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    This is a help Forum not a free consultancy site.

    Normally I would ignore a request like yours.

    However I had a similar job to yours twenty years ago and know how frustrating it can be so I will help you this time.

    Load your data onto the Daily Update sheet, then select the Update sheet.
    Attached Files Attached Files
    Last edited by mehmetcik; 01-05-2019 at 10:57 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you again for the offer to help. Although I have been a member for a few years I honestly have just recently started to use excel to create files rather than just a user of other peoples files. I am really enjoying using Excel and I like to try new things with it and that is why I have come to this site looking for solutions from Excel masters like yourself. I am sorry if I appeared to be looking for free consultancy as that is not my intention, my hope was to get a solution or maybe some help to steer me to a solution, but again I Thank you for your interest in helping me and look forward to more conversation with you and others that may have solutions.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    I used two macros here.

    The first one is sheet specific. It runs the main macro when you click on the Update Tab.

    Right Click On Your Sheet Name At the Bottom Of Excel and Select View Code
    Paste this code in the module that opens and close it.

    Please Login or Register  to view this content.

    The second Macro goes into a normal macro module.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you again for your work on this and for understanding what I am trying to do.

    I tried the attached updated file and I keep getting an error when I hit the update tab.

    Compile error:
    Sub or Function not defined

    I am very new to using excel and I am not sure what to do next?
    Once I know how it works in the sample file I am pretty sure I can apply it to the working file so again your help would be appreciated.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Looking for help with daily auto population of fields

    Remove the word Private from this
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you for the reply Fluff13, I removed the word Private which cleared the error but I am not seeing anything happen in the file when I change data in the Load Daily Here tab. I am sure it is probably something I am doing wrong but would appreciate confirmation if you could check.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Looking for help with daily auto population of fields

    Did you select the UPDATE tab?

  9. #9
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    I changed data in the Load Daily tab then I selected the update tab and see no changes?
    I have attached the file with the changes that I made in the hope that someone can help me figure out what I am doing wrong.
    Thank you again
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: Looking for help with daily auto population of fields

    Try changing this as shown
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Changed it from 6 to 2 as suggested, I am still not seeing updates on the Inventory List sheet and the Daily Load sheet is changed to currency in the Quantity in Stock column?
    I am in all new territory here as I don't understand VB code and I appreciate your patience.

  12. #12
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    Hi

    1. Sorry I went for a nap as you were not around.

    I have tried this again and made a couple of changes.

    Try this version.

    1. Enable Macros when you open the workbook.
    2. You must have data in the Update Sheet for the Macro to Run.

    2. I noticed that you have shaded alternative rows on your spreadsheet.

    The problem is that you can you can mess up the shading if you fill down or fill up.

    Select cell B7 and move your cursor to the bottom right hand side so it looks like "+" then drag it down.

    All your formatting is messed up.

    You should use conditional formatting to achieve the same result.

    Select rows 7 to 33
    Select the home tab
    Select conditional formatting, new rule
    Enter this formula into the formula box "=AND(ISEVEN(ROW()),COLUMN()<16)"
    Then select Format, Fill, and select your fill colour, then OK
    Attached Files Attached Files
    Last edited by mehmetcik; 01-05-2019 at 04:23 PM.

  13. #13
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you again and sorry for not being available straight through this project. What you have done is amazing! I am wondering if there is code that could be added to add new items to the inventory list as well. I am hoping for just the info that is loaded in the Load Daily Here sheet can added so if a new item comes into stock it will also start tracking or would this have to be added manually?

  14. #14
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    No I can do that for you.


    Try this version. This is a starting point. You need to give me samples of before and after data.
    Attached Files Attached Files
    Last edited by mehmetcik; 01-05-2019 at 08:00 PM.

  15. #15
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you, my actual data has about 500 hundred items and sees phase in/phase out of products as designs change. So tracking sales for both would allow for more complete data capture when I look at weeks, months/years...

  16. #16
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    Try this version. This is a starting point. You need to give me samples of before and after data.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    I could post the actual file if that would help, I am sure you would be able to see how limited my excel skills are by seeing how I have handled the data so far.

  18. #18
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    No Need.

    Lets get the sample working.

    Ahh I see the issue. Sorry I posted the wrong version.

    In this version I have posted 5 new products

    Running the data saves the new data in the Inventory list. How do you need that data saved

    new1 Quantity in Stock =10, Quantity on Order =2

    So Column F = 10, Column G = 8 ?????????????????
    Attached Files Attached Files
    Last edited by mehmetcik; 01-05-2019 at 08:53 PM. Reason: Subtracted Orders From Stock. New Products

  19. #19
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Do you know why I am seeing numbers where currency should be and currency where numbers should be? The columns seem to change format part way down. Also on the Daily Sales sheet the sales column is equal to what I am see on the Inventory List sheet?
    To answer the questions you have asked Quantity on Order is in column O and can be filled when the new data gets pasted to the Daily sheet.
    Column F =10 (previous number from previous days entry made on Load Daily sheet column E) , Column G = Load Daily sheet column E

  20. #20
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    Ok.

    I have rewritten the bulk of this.
    I originally used The Copy Destination function. That Messed up the formats.


    Please Login or Register  to view this content.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you again. I am still seeing some issues like column E Load Daily first 5 entries are showing as currency which I think is throwing data off the first 4 calculation for column G on Inventory List sheet? On Daily Sales sheet I am seeing 0 in column D after loading the items a second time? Is it possible we aren't running the same version of excel.
    Please don't think I am complaining, what I am seeing is a file that is almost doing what I asked for. A little more explanation from my side may have made it easier to get to this point.
    This file is amazing and maybe it is time for me to try to learn VBA to try to make the changes I want.

  22. #22
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    Q: I am still seeing some issues like column E Load Daily first 5 entries are showing as currency which I think is throwing data off the first 4 calculation for column G on Inventory List sheet?

    I see a problem there. F - O =G but only the first time the Macro Runs.
    O increases each time the macro runs, F decreases. So after the first time F - O <>G

    F does not actually provide useful information. I will check to see if I used that column in the calculations.

    Q: On Daily Sales sheet I am seeing 0 in column D after loading the items a second time? Is it possible we aren't running the same version of excel.
    The zeros are in your data, they are never over written. Did you want them removed?


    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by mehmetcik; 01-06-2019 at 12:40 PM.

  23. #23
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Tried this several times and I keep seeing Daily Sales column D populate with Load Daily Here column F. I was hoping to see column D on Daily Sales sheet to equal column F minus column G on the Inventory List sheet, this would have to happen after column G shifts to F and the new daily Quantity in Stock from column E from the Load Daily sheet loads to column G on the Inventory List sheet.

  24. #24
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Looking for help with daily auto population of fields

    That is the Daily Sales Sheet right?

    So you need that to reflect sales on that day.

    Column F - Column G gives you sales on that day. Column F + Column O only equals Column G on the first pass.

    On Tuesday You Have 10 of Item A Columns F and G

    On Wednesday you sell 2 of Item A so Column F =10, Column G = 8, Column O =8 G - F = 2 =O Correct 2

    On Thursday you sell 3 of Item A so Column F =8, Column G = 5, Column O =5 G - F = 3 <>O Correct 5

    On Friday you sell 2 of Item A so Column F =5, Column G = 3, Column O =7 G - F = 2 <>O InCorrect 7

    I did find one issue

    Corrected by:-

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 01-06-2019 at 02:17 PM.

  25. #25
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Column O is a totally different measure that might be used later to measure what the minimum should be or to see how often I am buying the item. So on the Load Daily sheet column F could populate 2 in column O of Inventory List sheet and could continue until the item is received which would be added at the data source and would populate E on the Load Daily sheet when pasted in.
    On the Load Daily sheet 10 could be the number loaded into E on one day but because there are 4 orders for this item with the source 3 could come in on one day, 4 a couple of days later and before all 10 are in 6 more could be ordered pushing the number that would load in E to 9 again.
    Very confusing for me and I typed this, let me know if you need it explained a different way.
    Thank you

  26. #26
    Registered User
    Join Date
    01-28-2014
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: Looking for help with daily auto population of fields

    Thank you for all of the help with my request. I have been studying VBA and I appreciate the opportunity to fine tune this code to be added to my original file.
    I really appreciate all of the time and patience you put into my request and hope to work with you again.

    Thank you

+ 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. How to stop and confirm auto population fields in user form based on one value
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-30-2018, 05:03 AM
  2. Help with Auto Population
    By heyeveryone123 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 12-01-2017, 04:35 PM
  3. Replies: 4
    Last Post: 03-21-2014, 01:41 PM
  4. Auto Population of Fields Incremented by Dates in Weekly Segments
    By Mark D. Haag in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-21-2014, 10:42 PM
  5. Auto Population
    By JustinZ in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-26-2009, 09:29 AM
  6. [SOLVED] Excel SHOULD NOT AUTO-CHANGE formated text fields to DATE FIELDS!
    By PSSSD in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2006, 04:35 PM
  7. Help :-( - Auto Population
    By Stacey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 11:45 AM

Tags for this Thread

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