+ Reply to Thread
Results 1 to 3 of 3

Need a help with a macro, to check date and change value.

  1. #1
    Registered User
    Join Date
    10-02-2017
    Location
    Internet
    MS-Off Ver
    Excel 2016
    Posts
    2

    Need a help with a macro, to check date and change value.

    Hello there!

    I want to know If I can complete this with macro, and if so, how?
    I am pretty new into all this mess.

    Lets Say

    I have a J table with date, I table with devliering person, and K with amount.

    I want a macro that does check if the J(date) is the same, and if it is, then check if the I(delivering) has the same value, and if the K(amount) is the same, then
    I want it to leave one row as correct amount like 27 for example, and all the others 27 I want to have 0 value.

    Also after every date swap like 17 jan to 18 jan, I'd love to have 3 rows blank for my own calc's

    Is it possible to achieve ?


    Example
    I J K
    DAD 18 sie 17 11
    SDA 18 sie 17 14
    ABC 18 sie 17 50
    ABC 18 sie 17 50
    ABC 18 sie 17 50
    ABC 18 sie 17 50

    Desired
    I J K
    DAD 18 sie 17 11
    SDA 18 sie 17 14
    ABC 18 sie 17 50
    ABC 18 sie 17 0
    ABC 18 sie 17 0
    ABC 18 sie 17 0
    Last edited by Ravir; 10-03-2017 at 02:37 AM. Reason: Rule 1 has been broken

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,960

    Re: Need a help with a script

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-02-2017
    Location
    Internet
    MS-Off Ver
    Excel 2016
    Posts
    2

    Re: Need a help with a macro, to check date and change value.

    Anyone? bumping.

+ 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. script to run the macro from Vb script with out opening the excel file
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2021, 03:33 AM
  2. Execute VB Script/ SAP Script from Excel
    By ramkrishna1111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2015, 01:54 PM
  3. calling the vb script from the shell script(unix platform)
    By chandanp in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2014, 06:21 AM
  4. Integrating Mainframe emulator script with excel's vba script
    By Himanshu Mishra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2012, 10:30 AM
  5. Create VBA script to short, dedicated button in excel for script?
    By realized in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2009, 11:54 PM
  6. Script that edits the text printed on the button that runs the script
    By petalred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2008, 02:41 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