Close

Results 1 to 13 of 13
  1. #1
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Quick Excel Question.....

    Hi, could do with some help if anyone can think how to do this. It should be simple but I can't get it.

    I have a sheet with a list of names and a Yes/No drop down box in each row with the name.

    I have a seperate sheet in the same workbook where I want to use the same list but only pull through the "Yes" rows. Easy enough to do with an IF statement filled down but I don't want blank rows where the "No" rows appear.

    How can I get excel to make each row of the new sheet contain relevant data?
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

  2. #2
    DF VIP Member inspectercoley's Avatar
    Join Date
    May 2007
    Location
    TaxiMike
    Posts
    3,733
    Thanks
    234
    Thanked:        64
    Karma Level
    407

    Default Re: Quick Excel Question.....

    Use and auto filter and then just copy and paste that.

    Data filter auto filter and then choose yes for that column.
    [live=TaxiMike]TaxiMike[/live]

  3. #3
    DF VIP Member SiE's Avatar
    Join Date
    Jan 2001
    Location
    My comfy sofa
    Posts
    7,211
    Thanks
    196
    Thanked:        407
    Karma Level
    787

    Default Re: Quick Excel Question.....

    use a direct cell link to the cells on the first sheet then apply a filter for yes

  4. #4
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Re: Quick Excel Question.....

    Excellent guys. Cheers.
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

  5. #5
    DF VIP Member Karoline's Avatar
    Join Date
    Dec 2004
    Location
    UK
    Posts
    2,551
    Thanks
    106
    Thanked:        59
    Karma Level
    467

    Default Re: Quick Excel Question.....

    Quote Originally Posted by SiE View Post
    use a direct cell link to the cells on the first sheet then apply a filter for yes
    Yes, this is what i was going to say, just studied this too on Tue night, lol

  6. #6
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Re: Quick Excel Question.....

    Slight problem with this guys - the filter works ok but it's not dynamic. So if I apply the filter for the info to be pulled through to the other sheet and someone goes into the first sheet and changes the "yes" to a "no" after that time, sheet 2 won't automatically update unless the filter is reapplied. Any thoughts?

    In addition to that, the filter function just hides the rows that you don't want to see so if you made a direct cell reference from another sheet then the cell it refers to will still be there although hidden.
    Last edited by Sushi; 19th January 2008 at 04:35 PM.
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

  7. #7
    DF VIP Member SiE's Avatar
    Join Date
    Jan 2001
    Location
    My comfy sofa
    Posts
    7,211
    Thanks
    196
    Thanked:        407
    Karma Level
    787

    Default Re: Quick Excel Question.....

    you could probably write some vba code to refresh the second sheet after entry on the first screen.

  8. #8
    DF VIP Member Bodman's Avatar
    Join Date
    Feb 2001
    Location
    Bodsworld
    Posts
    911
    Thanks
    14
    Thanked:        30
    Karma Level
    352

    Default Re: Quick Excel Question.....

    You need to use Vlookup. Il try to explain

    Your page would look like this



    Column G is your names
    Column I is your drop down boxes (Yes/NO)
    Column F is a copy of colmn I (=i) (Vlookup uses left hand column, you can hide this column later)


    On your second page you would need a Vlookup command like this

    =VLOOKUP("Yes",F1:G1,2,FALSE)




    "Yes" is what your searching for
    F1:G1 is the table in which you are searching (Do each line as its own table)
    2 If it finds "Yes" then output the data from 2 columns across (the name)
    FALSE if it doenst find "Yes" stop (It outputs N/A)

    Hope this help ya


    //Bod

  9. #9
    DF VIP Member
    jaguar982's Avatar
    Join Date
    Jul 2001
    Location
    Planet ZOD
    Posts
    2,105
    Thanks
    387
    Thanked:        188
    Karma Level
    463

    Default Re: Quick Excel Question.....

    Yes m8 vlookup should sort it

    jag


    I'm not racist i hate everybody

  10. #10
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Re: Quick Excel Question.....

    Cheers folks. Much obliged.
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

  11. #11
    DF VIP Member inspectercoley's Avatar
    Join Date
    May 2007
    Location
    TaxiMike
    Posts
    3,733
    Thanks
    234
    Thanked:        64
    Karma Level
    407

    Default Re: Quick Excel Question.....

    You will still have a similar problem to before tho cos you will have to then re-apply the filters every time. And either start by making the lookup much bigger than it need to be and just add to it. or if its the correct size then every time you add a line it will then need to be redone. (well add x to the cell number reference where that is the number of lines added.
    [live=TaxiMike]TaxiMike[/live]

  12. #12
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Re: Quick Excel Question.....

    About the VLOOKUP command - maybe I'm missing something but from what I can see this will give me the same problem as I had originally when using the "IF" statement to detect the "Yes" lines. i.e. I will get blank rows (or in this case #N/A) for the rows which have a "No".

    eg. in the example above, lets say Frank and Charlie were actually a "No" instead of all being "Yes" this would leave a #N/A in the calculated column.

    What I'm trying to create in my second sheet is the truncated list containing only the "Yes" people rather than a list which is the same in size but with gaps (or #N/A) in it.

    What do you guys think am I missing something here?
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

  13. #13
    DF VIP Member Sushi's Avatar
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    502
    Thanks
    0
    Thanked:        0
    Karma Level
    298

    Default Re: Quick Excel Question.....

    Ok, I think I've got this working now. I used VLOOKUP on the whole table and added a column where the cell contained the cell reference for the one below. I then pulled that info through along with the persons name etc. I then used that cell reference as the starting point for the next VLOOKUP so the table size is reducing each time it searches through for "Yes".

    Only problem now really is that the cells at the bottom of the calculated table all contain #N/A until they are used. This doesn't affect the functionality of the sheet but doesn't look very pretty.

    Does anyone know if you can get Excel to ignore what it perceives to be formula errors and just leave the cell blank??

    EDIT - Got that sorted too. You can use the ISNA command to suppress the error messages. DONE!
    Last edited by Sushi; 21st January 2008 at 03:27 PM.
    Lets bring back the word Rad......

    [live=Sushi%20MaC]Sushi MaC[/live]

Similar Threads

  1. quick release keys
    By ghostman78 in forum Radio Decoding
    Replies: 2
    Last Post: 6th October 2002, 04:18 AM
  2. redirect question
    By Psychoschiz in forum Web Hosting & Domain Names
    Replies: 2
    Last Post: 26th September 2002, 04:09 PM
  3. Quick Saturn question
    By doughboy in forum Old Skool Gaming & Retro
    Replies: 1
    Last Post: 16th September 2002, 02:19 AM
  4. Quick questionon old consoles
    By bozza in forum Old Skool Gaming & Retro
    Replies: 3
    Last Post: 4th September 2002, 02:25 PM
  5. Where can I get microfilters cheap and quick???
    By furryboo in forum Internet Connections & VPNs
    Replies: 4
    Last Post: 28th August 2002, 02:38 PM

Social Networking 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
  •