Consulting

Results 1 to 8 of 8

Thread: Solved: Need Help With Methodology

  1. #1
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location

    Solved: Need Help With Methodology

    I am in the process of constructing a rather large database of time and payment information for five individuals who work from time to time for my brother on his small farm. My preference would be to keep the time, hourly rate, pay, etc., for all five men within the same spreadsheet (as opposed to maintaining five separate spreadsheets) and then to be able to have a separate sheet within which I can easily extract information for one at a time and view, edit, print, etc., as needed, as well as generate reports for combined total hours worked, wages paid by time period.

    My interest at this point is not in how to design the data sheet but, rather, in a way to extract one man's data into the separate sheet without including a bunch of blank rows. I've tried IF with VLOOKUP and I can bring the relevant rows of data in, but it also leaves tons of blank rows representing the rows of data applicable to the other men. Is there a function that would accommodate extracting only the rows of data for one individual from within the larger database without including blank rows.

    I've attached a sample spreadsheet for test purposes.

    Thanks,

    Opv

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try this
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    Works like a charm. Thanks a million!

    Opv

  4. #4
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    How would I expand the formula (presumably in the hidden column A) in the Individual Report Sheet to, in addition to testing for a name match, to also match the YEAR = the year in the date transaction date column?

    Ideally, it would be nice to have the option to either test for both the name and the year and retrieve only rows that match both criteria, or to test only for name and retrieve all rows, regardless of date.

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try this
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    Thanks. That seems to work when selecting a specific year, but when I select "All," nothing shows up; all the rows are blank.

  7. #7
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I changed the format at the last moment
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  8. #8
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    Thank you very much. I think I can work with that.

    Opv

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •