+ Reply to Thread
Results 1 to 6 of 6

Auto-Identification of amount, in resp time interval column & coloring it, using VBA Macro

  1. #1
    Registered User
    Join Date
    05-23-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Smile Auto-Identification of amount, in resp time interval column & coloring it, using VBA Macro

    Hi Excel Experts,

    Can any one, please help me with this..

    I am having a excel spreadsheet, which contains CASH overdue, distributed as per days - diff. time interval.

    Need help in first step - to identify them as per time interval.

    I am finding the unallocated cash, mentioned in Column H, with the respective time Interval columns J - P & if identified, mark green in column Q same row & resp. identified cash/es, if not Orange in column H. (Which would be crosschecked manually later, after sort by color).

    Two instances to identify: 1. Amount in Column H, Unallocated Cash; can have perfect match in one of the Time Interval columns- Then Identified.
    2. Amount can be equal to sum of two or more cashes in Column J - P - Then its Identified.

    Since, most of the cashes can be identified 75 + %, hoping for a VBA Macro code to do this task. Please help me with a VBA for the simple example provided in attached file, which consists 40 sample, actual work consists of 300+rows.

    Please feel free to ask any info. leave a comment.

    Thanks & Regards
    Ram
    Last edited by Ram_G; 11-08-2014 at 01:52 AM. Reason: Correcting Subjet matter

  2. #2
    Registered User
    Join Date
    05-23-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-Identification of amount, in resp time interval column & coloring it, using VBA M

    Hmm.

    No response.

    I am also trying with a IF function, True/False, to find if any amt. column H, matches with Column J - P same row. Manually.

    Is it possible to do this using VBA codes, any help much appreciated.

    Regards
    Ram

  3. #3
    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: Auto-Identification of amount, in resp time interval column & coloring it, using VBA M

    Hi Ram_G

    This Code identifies about 69% of the Offsets and appears to identify all that are in your Sample File. I'll need more examples to find the outliers.

    I've not yet addressed the Results Sheet nor the Orange Colors (I'm terribly Color Blind...I assume Orange).

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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.

  4. #4
    Registered User
    Join Date
    05-23-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-Identification of amount, in resp time interval column & coloring it, using VBA M

    Hi Jaslake,

    Thanks a lot, for your valuable response.

    The Macro worked brilliantly. Completed the result sheet also, using Sumbycolor Function.

    But, I am a bit stuck.Somehow,I missed one point - Any positive value in Column H, shouldn't be taken by Macro. Example, H33 in Test File.

    The macro should avoid +ve value, by not searching its breakout, and by not coloring the Q column same row.

    Is it possible to put a code to restrict it & take only negative value, in above macro which worked.

    Appreciate your comments.

    Regards
    Ram
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-23-2014
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Auto-Identification of amount, in resp time interval column & coloring it, using VBA M

    Hi Jaslake,

    In addition to the above post. As, I am learning from you & all excel experts.

    Thought, I will attach file Template which shows progress, I made till now.

    You are right; Orange actually was not required. Used Filter by Blank.

    However, really, need your help with above Macro, to make it not to take Positive Values of Col H.

    Thanks & Regards
    Ram
    Attached Files Attached Files

  6. #6
    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: Auto-Identification of amount, in resp time interval column & coloring it, using VBA M

    Hi Ram

    Add the two indicated lines of Code
    Please Login or Register  to view this content.

+ 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] Counting the number of days overdue based on date and time
    By Barking_Mad in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-08-2014, 10:57 AM
  2. Replies: 1
    Last Post: 04-29-2014, 04:42 AM
  3. Formula to determine total overdue values by length of overdue
    By Midnight_Dragon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-17-2013, 02:03 AM
  4. Replies: 0
    Last Post: 04-23-2012, 10:06 AM
  5. Replies: 0
    Last Post: 02-21-2005, 06:06 AM

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