+ Reply to Thread
Results 1 to 10 of 10

Can't find a value on sheet1 and input it on sheet 2

  1. #1
    Registered User
    Join Date
    11-27-2007
    Posts
    18

    Can't find a value on sheet1 and input it on sheet 2

    I've searched microsoft, excel sites and read excel books but i just can't seem to get the answer i'm looking for :

    If I have 2 sheets names 'User Info' and 'Labels' what i'm looking to do is on the 'Labels' sheet under cell J2 to be able to enter a number, 505 in this case which searches for this number under column B of sheet 'User Info' finds it, looks to the entry in column D (the name Ken) and in turn puts the name into cell J2 in sheet 'Labels'.

    The real life use for this is to search a phone extension number in User Info sheet, and use the user name at that extension number and place it in a label on the Label sheet for a reception phone. The Reception phone can have multiple extensions on it made up of any 3 digit number on any where from 3 keys to 12+. So the ability to search for 100-999 is needed.

    Thank You very much on advance for any help on this


    breal33

  2. #2
    Registered User
    Join Date
    01-23-2007
    Posts
    30
    you tried using vlookup ? attach yor spreadsheet

  3. #3
    Registered User
    Join Date
    11-27-2007
    Posts
    18
    here is the file you requested j2 on the label sheet is where i want to put the formula pls

    breal33
    Attached Files Attached Files

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi Breal

    See the attached - I think it does what you want.

    If there are a greater range of extns and users the lookup table will need to be extended.

    let me know how you go.

    Ed
    Attached Files Attached Files
    Last edited by EdMac; 11-28-2007 at 06:24 AM.

  5. #5
    Registered User
    Join Date
    11-27-2007
    Posts
    18
    that is the main idea, except where 500 was entered (to the left of your formula) is where i would like to enter the formula so as soon as i type in the number 500 it is replaced with whatever name is in column D of user info, if this can't be done then i can always make a 'rough draft label sheet and have a good draft label sheet where i would place the formula. if this can be done please let me know, otherwise, thank you very much edmac for your time and efforts, it is greatly appreciated

    breal33

    p.s. is it also possible to be able to enter text and not have the formula return a 'check number' error?
    Last edited by breal33; 11-28-2007 at 09:16 AM.

  6. #6
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi,

    Yes I wondered about the location of the information. You can't have data entry into a cell that has a formula - It could be done using VBA.

    The "check number" message is an error trap in case the data entered is not in the llookup table - if you want to get rid of it just delete the words in the formula but leave the speech marks, it will then return nothing.

    e.g.
    Please Login or Register  to view this content.
    Ed

  7. #7
    Registered User
    Join Date
    11-27-2007
    Posts
    18
    Fantastic, ty very much again, one last inquiry, if i were to use text instead of a number can i make it put the text i enter as the entry into the formula cell? for example if i choose to use the word 'Page' or 'Transfer' can i tweak your code to put that text into the cell instead of the blank?

    p.s what is VBA?

  8. #8
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Hi

    If you change it to the code below, then any text you enter in J2 will appear in K2

    Please Login or Register  to view this content.
    VBA is a code that sits behind the spread sheet and does clever things - if you have a look at the programming forum, you will get some idea of what it is about.

    http://www.excelforum.com/forumdisplay.php?f=7

    Ed

  9. #9
    Registered User
    Join Date
    11-27-2007
    Posts
    18
    Thank you so very much, it worked great.

    breal

  10. #10
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Great.

    thanks for the feedback

    Ed

+ 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