1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: MS Excel: create list based on data in a simple table

Discussion in 'Business Applications' started by MissFig, Jul 12, 2012.

Thread Status:
Not open for further replies.
  1. MissFig

    MissFig Thread Starter

    Jul 12, 2012
    It's difficult to describe my situation in words, so I'll just show you what I'm trying to do.

    I have a table that looks like this:

    A, B, C
    Name, Hours, OT hours
    Jane, 166, 0
    Jack, 163, 17
    Mike, 168, 0
    Dot, 167, 24
    Erin, 164, 8
    Carmen 158,0

    and I want to create a list that will have 2 rows if there are OT hours, and 1 if there are not.

    A, B
    Jane, 166
    Jack, 163
    Dot, 167
    Dot, 24
    Erin, 164
    Carmen, 158

    I can't use macros or VBA. It has to be formula driven. I can use a helper column or two. The starting table will change depending on who charged hours where. I've been trying to use IF and OFFSET and ROWS to do it, and it works until there's 2 consecutive rows that have OT hours.

    Just to clarify, I just need to know how to get column A listed properly elsewhere in the spreadsheet - I can derive Column B using vlookup.

    Thanks so much!
  2. GeorgeJ


    Jan 16, 2012
    2 Formulas - 1 for finding the name, the other for finding the appropriate value.
    Note - must start on row 3 or greater.

    Names (mine start in cell G3): =IF(G2<>"",IF(G1=G2,INDEX($A$2:$C$7,MATCH(G2,$A$2:$A$7,FALSE)+1,1),IF(VLOOKUP(G2,$A$2:$C$7,3,FALSE)>0,G2,INDEX($A$2:$C$7,MATCH(G2,$A$2:$A$7,FALSE)+1,1))),$A$2)

    Hours (mine start in cell H3): =IF(G3=G2,VLOOKUP(G3,$A$2:$C$7,3,FALSE),VLOOKUP(G3,$A$2:$C$7,2,FALSE))
  3. mrmeap


    Jul 13, 2012
    Hi, I was playing a game just moments ago. The computer was running fine before, no troubles. The game froze and I was unable to do anything, so I held the power button on my computer to force shut it down. When I opened it up again, it comes up with the blue screen saying something like
    A problem has been detected and Windows has been shut down to prevent damage to your computer.

    I forget what it says because now when I restart again, it leads me to the boot menu with the safe modes etc. But when I try booting in safe mode, the blue screen appears again. I don't want to lose my data/files. Please help me!!!!
  4. MissFig

    MissFig Thread Starter

    Jul 12, 2012

    That worked! Thank you so much!
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1060740

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice