+ Reply to Thread
Results 1 to 8 of 8

Does this require VLOOKUP?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-18-2010
    Location
    Wisconsin, USA
    MS-Off Ver
    Microsoft Office 2007 on Windows XP
    Posts
    27

    Does this require VLOOKUP?

    I developed an extremely helpful and useful Excel sheet thanks in large part to the help I've gotten off of this site.

    In fact I've fixed about 90% of what I've wanted to fix on the project, with only one thing left (that I can see so far).

    In the uploaded you'll see a tab labelled WARR JOBS. The purpose of this sheet is to keep a tally of which Techs end up taking warranty jobs as they don't get paid for them. My goal is to spread them out as evenly as possible. Previously I've always had to just cut/paste the information automatically. Then H13:H21 would just run this formula to count how many occurances I had entered manually:

    =COUNTIF(C8:C481, G21)
    G13:G21 are the Techs' initials.

    I've recently entered this code into the cells next to that to count directly from the sheet labelled COMPLETED WORK:

    =SUM(IF(('COMPLETED WORK'!$H$2:$H$5979="WARR"),IF('COMPLETED WORK'!$G$2:$G$5979=G21,1)))
    This looks for the occurances of the tech's initials in G21, then counts how many warranty jobs he's completed in the sheet COMPLETED WORK.

    So those I have figured out. What I'd like to do (and the reason for the thread title) is that the information in columns B - D should get posted automaticlly. This is what I'd like to have happen:

    If a Warranty is completed then:
    'WARR JOBS'!A = 'COMPLETED WORK'!B
    'WARR JOBS'!B = 'COMPLETED WORK'!D
    'WARR JOBS'!C = 'COMPLETED WORK'!G
    'WARR JOBS'!D = the month/day from 'COMPLETED WORK'!I

    From there I could just use the first code I posted to sum up the occurances and know it is accurate.

    Thank you in advance for your help!
    Attached Files Attached Files
    Last edited by mealstrom; 06-28-2010 at 11:04 AM.

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Does this require VLOOKUP?

    Hi mealstrom
    See attached. Is that what you want??? Would also like to know my mistakes there...
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    06-18-2010
    Location
    Wisconsin, USA
    MS-Off Ver
    Microsoft Office 2007 on Windows XP
    Posts
    27

    Re: Does this require VLOOKUP?

    Quote Originally Posted by contaminated View Post
    Hi mealstrom
    See attached. Is that what you want??? Would also like to know my mistakes there...
    Actually just like that, but instead of displaying all entries just display the entries that have WARR in column H (in worksheet COMPLETED WORK)

    Still, that is a GREAT start. I'm going to study what you did to try and get a grasp on VLOOKUP. I've read a million tutorials on it but still can't seem to figure it out.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Does this require VLOOKUP?

    try this all yellow cells have formulas and i changed h13:h20 to a simple countif
    edit added second version with extra helper columns on data sheet instead ,wasn't sure which column you were getting date from so each version references a different column for date
    Attached Files Attached Files
    Last edited by martindwilson; 06-27-2010 at 05:02 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    06-18-2010
    Location
    Wisconsin, USA
    MS-Off Ver
    Microsoft Office 2007 on Windows XP
    Posts
    27

    Re: Does this require VLOOKUP?

    Oh wow, that second one is EXACTLY what I was looking for. It even ranks them (which was going to be my next question).

    Thank you for the help. I'll go list this one as resolved, but I might have a few questions on the exact mechanics of it.
    Last edited by mealstrom; 06-28-2010 at 10:37 AM.

  6. #6
    Registered User
    Join Date
    06-18-2010
    Location
    Wisconsin, USA
    MS-Off Ver
    Microsoft Office 2007 on Windows XP
    Posts
    27

    Re: Does this require VLOOKUP?

    Actually, I had to go back and "Unsolve" this unfortunately. I used your second sheet since it looks exactly like what I wanted and I LOVED the ranking system. Unfortunately on the WARR JOBS sheet it ranks properly, but it doesn't update the list of warranty jobs from the COMPLETED WORK tab. I went into the COMPLETED WORK tab and changed a few of the hours to WARR to see if it would update and it didn't.

    Is this something that only updates each time the database is reopened? If so I need to figure out a way to refresh without closing it as it needs to remain open all the time.

    I'll keep looking to see if I can figure out where it's going wrong. I'll upload the most current version.

    Thanks again for the help, I REALLY appreciate this!
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-18-2010
    Location
    Wisconsin, USA
    MS-Off Ver
    Microsoft Office 2007 on Windows XP
    Posts
    27

    Re: Does this require VLOOKUP?

    Okay, after going back and looking more closely I realized what was happening. For some reason Excel put the full address (C:\My Documents\.... etc) before the tab it was supposed to be referencing. Once I went through and deleted all of those it works perfectly.

    Again, thank you SO much for the help anyone. I really appreciate this!

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Does this require VLOOKUP?

    that was probably my fault copying things from a "live" version to my saved one, sorry

+ 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