+ Reply to Thread
Results 1 to 7 of 7

vba code or formula assistance to associate a date, text, and value to a summary report.

  1. #1
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    vba code or formula assistance to associate a date, text, and value to a summary report.

    Hello, I tried searching the web for anything remotely close to doing this.. so I'm skeptical this can be done. With that said though, I thought before giving up I'd ask for any assistance or insight one could give from the forum.

    I'm looking for a formula or vba coding that would look at the filtered name in column "A" then from row 1 between Columns C through Q in this sample workbook identify the date range and then starting with row 5 look for any of the following codes "8S", "7S", "6S", "5S", "4S" , "3S",, "2S", "1S" and associate them as one group . Ideally, I would like to assign a value to these codes ; i..e. "8S" = 8, "7S"= 7, etc and then via the formula have a result something to the effect below: (also I'd like this to populate on another sheet tab titled Report.

    End result looking something like this:

    John Doe,
    Wednesday, 01/02/2013 4S, 4 hrs
    Thursday, 01/10/2013, 8S, 8 hrs.
    Total: 12 hrs.

    If this is possible, your assistance would be greatly appreciated!
    Attached Files Attached Files
    Last edited by lilsnoop; 01-01-2013 at 12:52 AM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    try this macro
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    Nice rcm! I've plugged your code into my full workbook and it seems to only do two names in my name list summary report and not the 36 that are in column A. I was curious if I could limit the summary report to only locate files with a number and an "S" in it; i.e. 7S, etc. So it wouldn't necessary identify a coding that would reflect "SW", etc. Thanks so much for your efforts and time!

  4. #4
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    I limited to lines 5 and 6 but it can be set from 5 to range("a"&rows.count).end(xlup).row too

  5. #5
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    Thank you that did do the trick. Any way to limit it to just find and add the following "8S, 7S, 6S, 5S, 4S, 3S, 2S, 1S" ? Thanks so much for your help! I'm very pleased with your code!

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    There you go, the filtering assumes that the length is 2 and ends with an "S"
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    03-17-2007
    Location
    Michigan
    MS-Off Ver
    Excel 2021
    Posts
    974

    Re: vba code or formula assistance to associate a date, text, and value to a summary repor

    Thanks a lot rcm! That last example did just what I needed! Your help was greatly appreciated!!

+ 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