+ Reply to Thread
Results 1 to 5 of 5

OK this may be totally out of my league but I'm going to ask anyway!

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    15

    OK this may be totally out of my league but I'm going to ask anyway!

    SO here is a brief overview. I'm a police officer working in a specialty unit and created a speadsheet years ago for my office to log our cases. I wrote formulas so that it would calculate stats on a separate sheet. A couple years ago we got a new boss who loved it. He has moved on to anther unit and wants me to create a spreadsheet for his new unit. But he has these ideas of what he would like it to do, I don't even know if it's possible and I fear that even if it is, it may be way over my head.

    So on sheet 1 everyone will just enter the info from their investigations, I've created the necessary validations so it can collect stats etc. What this guy wants is a separate sheet for "cases before the courts" which I have in my current spreadsheet for my office but our admin assistant just keeps that up to date manually. The new idea is that if the column that I have labelled "charges" on sheet 1 has a value (indicating that a charge is laid and there will be a court date) that those values from the "charges" column along with values from other relevant columns will populate over to the second sheet.

    The first problem I see is that because there won't be charges laid in every investigation, I will end up with the scenario of trying have for example values from rows 2, 7, 15, 21 etc populate into rows 1, 2, 3, 4 etc of the second sheet. And of course conversely looking at the columns I don't want values from every column, so I am going to try to take values from columns C, H, K, L, P, etc. and have them populate Columns B, C, D, E and F etc.

    So I guess question 1 would be is this even possible? Question 2 would be if it is how complicated would it be to pull it off?

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: OK this may be totally out of my league but I'm going to ask anyway!

    Sounds to me that you want a pivot table, you can show just the columns that you want, and filter the pivot by the rows with a value in the charge column.

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: OK this may be totally out of my league but I'm going to ask anyway!

    You could always run a macro for sheet 2, either by sheet activated event or by a button.
    This will then clear all data in sheet 2 and search sheet 1 for all cases due to go to court and list them one after the other using the correct columns.
    If you upload an example of your data and what you want then it shouldnt be too difficult.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,436

    Re: OK this may be totally out of my league but I'm going to ask anyway!

    Yes, it should be possible. I assume there is a unique reference? If there is you can create an Array Formula to return the reference and, using that, have VLOOKUP formulae to return the rest of the relevant fields.

    Can't do anything now but you could search for examples of "extract list of values matching criteria". This is a pretty good example that is well explained so you should be able to adapt it.

    http://exceltactics.com/make-filtere...l-using-small/

    Once you have your list, use VLOOKUP to get the rest.

    Regards, TMS
    Last edited by TMS; 07-30-2014 at 09:41 AM. Reason: typo
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    03-21-2013
    Location
    Newmarket, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: OK this may be totally out of my league but I'm going to ask anyway!

    Thanks for the replies, it looks like I have some options. I will return to this thread when I get far enough into this and get more specific. In the meantime I will play with some of these ideas on a separate spreadsheet to see if I can get these things to work.

    I really appreciate your time.

+ 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. Not totally getting the hang of vlookup
    By mgoulart in forum Excel General
    Replies: 6
    Last Post: 02-10-2012, 05:53 PM
  2. Excel 2007 : Totally Dont Know What To Do
    By garys in forum Excel General
    Replies: 1
    Last Post: 11-09-2010, 07:50 AM
  3. I am totally lost!!!
    By jj33002 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-18-2007, 12:05 AM
  4. [SOLVED] Totally Stumped
    By Sondra in forum Excel General
    Replies: 3
    Last Post: 02-15-2006, 10:10 AM
  5. totally newbie to VBA need help
    By cuongvt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2005, 03:05 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