+ Reply to Thread
Results 1 to 9 of 9

Data Section based on the Date

  1. #1
    Registered User
    Join Date
    05-27-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Data Section based on the Date

    Hi Everyone,

    I have date wise plan for the total month in excel. Every day, i will update the plan as on before day. For example.. im preparing the report on 04.11.11 means, i will update the plan as on 03.11.11. Please help me out to write the macro in such a way that, when i run the macro, based on the system date, report should be updated.


    Regards,
    Sirisha

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Section based on the Date

    What do you mean by 'Report should be updated'? Maybe you can attach a sample workbook with a before and after sheet so we can understand your problem.

  3. #3
    Registered User
    Join Date
    05-27-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data Section based on the Date

    Please find the attachment with sample data.
    Attached Files Attached Files

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Section based on the Date

    So just to clarify the requirements, if you put in the date as 4th Nov, automatically, the data in column E should add the data for 4th from the previous sheet and the data in column G should reflect the next day's data, right?

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Section based on the Date

    If i understood your requirements clearly, find attached the solution. I have made a slight change to your format. I have included a dropdown for the date to make it easier. I have also included 2 helper columns K & L which have been hidden. They should not be deleted. If the month has 31 days, just add an extra value in both the columns.
    Let me know if the attached contains what you need.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-27-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data Section based on the Date

    Hi,

    Good Morning.

    Absolutely rite. And thank u for the Solution. And one more thing is that, In the column E i will update as you guided. But in Column F, only the selected date plan to be reflected. Means dropdown menu to be added for two columns. in the E column, cumulative quantity should come as u write the code. But in column F only the selected date paln to come.

  7. #7
    Registered User
    Join Date
    05-27-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Data Section based on the Date

    hi,

    Sorry. I have missed the column H. That solution is ok. But the formula is not w.r.t the item code. Sequence may not be the same in both sheets. So please guide how to get the details based on the itemand date.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Section based on the Date

    Quote Originally Posted by Sirisha.P View Post
    In the column E i will update as you guided. But in Column F, only the selected date plan to be reflected. Means dropdown menu to be added for two columns. in the E column, cumulative quantity should come as u write the code. But in column F only the selected date paln to come.
    Yes, if you check the numbers, column E does contain the cumulative amounts. I have not populated column F as it was not there in the initial requirements and i didnt know what to input there.
    Also, i didnt understand the fact why you need 2 dropdowns?

    But the formula is not w.r.t the item code. Sequence may not be the same in both sheets. So please guide how to get the details based on the itemand date.
    I will need to check this out.

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Data Section based on the Date

    Were you able to find a solution on this one?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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