+ Reply to Thread
Results 1 to 13 of 13

Using number in one sheet to draw content from another sheet

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Using number in one sheet to draw content from another sheet

    I've tried using the search facility for this but it doesn't seem to be playing ball today.

    I have a column of numbers in one sheet and in the second sheet there are two columns, column a is the corresponding number from the first sheet and column b is the wording for that number. See example below.
    What formula could I use to draw the data from one to sheet to another to make the words replace the numbers in the column of the other sheet?

    Sheet
    102
    107
    119
    145

    Sheet 1
    Column A Column B
    102 Apples
    107 Oranges
    119 Pears
    145 Grapes

    Many thanks
    Mike
    Last edited by mike_m1; 03-05-2010 at 05:32 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using number in one sheet to draw content from another sheet

    You can't replace the numbers with formulas, but you can a formula next to the number...

    e.g. in column B, =Lookup(A1,Sheet2!A:B) which assumes column 1 in sheet 2 is in ascending order...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    The issue is the numbers aren't in all rows of the column and aren't in a numerical order, they are random throughout the column.

    Mike

  4. #4
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Using number in one sheet to draw content from another sheet

    As this is the excel programming forum this might be a solution
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  5. #5
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    Oops my head just exploded, lol.
    I have no idea what that all means

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using number in one sheet to draw content from another sheet

    Then maybe

    =Vlookup(A1,Sheet2!A:B,2,FALSE)

  7. #7
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    In which cell do I add the above into?
    Have tried it in B1 on sheet 1 and it doesn't like it

    The wording on sheet2 is in column b for the numbers on sheet1
    Sheet2 is a reference for the values in sheet1 and is numbered in numerical value on sheet2 in column a
    Last edited by mike_m1; 03-05-2010 at 01:50 PM.

  8. #8
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    Think I might have managed to get it to work as the numbers in the first few rows were showing as text. Will let you know how I get on.

  9. #9
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    Man this forum is so good, thanks guys, I think you may have solved my headache, more testing to follow before closing thread

  10. #10
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    One final thing, how do I delete the cells which don't contain any information so therefore just give an error ' #N/A ' ?

  11. #11
    Registered User
    Join Date
    02-12-2008
    Posts
    22

    Re: Using number in one sheet to draw content from another sheet

    Wow... this is pretty much exactly what I needed to do. This solved my problem! Thanks! I can now [SOLVED] my thread!

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Using number in one sheet to draw content from another sheet

    Quote Originally Posted by mike_m1 View Post
    One final thing, how do I delete the cells which don't contain any information so therefore just give an error ' #N/A ' ?
    Do you mean?

    =IF(ISNA(Vlookup(A1,Sheet2!A:B,2,FALSE)),"",Vlookup(A1,Sheet2!A:B,2,FALSE))

    This returns you a blank if the item was not found.

  13. #13
    Registered User
    Join Date
    01-28-2010
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    40

    Re: Using number in one sheet to draw content from another sheet

    You sir are a pure genius

+ 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