+ Reply to Thread
Results 1 to 7 of 7

Thread: LOOKUP formula

  1. #1
    Registered User
    Join Date
    02-05-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    5

    LOOKUP formula

    hi, this is my first post so im sorry if its not done in the right place or maner, my problem is i need to get a lookup formula to look into a colum for a value and if that value is found to copy it to the same raw but in another colum:

    look in Colum A for value 1:42 if that value is found in A3, A15, A45 then copy that value to B3, B15, B45. i hope im making myself understand and some good soul can help me out.

    many thanks in advance.

    Jorge

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: LOOKUP formula

    Hi, and welcome to the forum.

    In B1 and copied down

    Code:
    =IF(AND(A1>=1,A1<=42),A1,"")
    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    02-05-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: LOOKUP formula

    hi, wow, that was really fast however its not working for me, maybe i didnt explain very well what i wanted, in my sheet in colum A i have 1300 raws with a product description and in that product description i have the product code in the midle of the description, i need to creat a new colum B just with that product code and it needs to be on the same raw, there are 23 diferent codes in those 1300 cells so i just need to look for those codes and copy them to a new colum. i hope this explains a bit better, im so sorry if it doesnt. thanks in advance

    jorge

  4. #4
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: LOOKUP formula

    Hi,

    It will be easier to help if you can upload a sample of your data which contains all possible permutations of your data.

    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  5. #5
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: LOOKUP formula

    Hi,

    ...and perhaps if I understand the requirement correctly, as an array formula in B1, i.e. enter this with Ctrl Shift Enter and then copy down to rows 2:nn

    Code:
    =IF(AND(1*MID(A2,MATCH(TRUE,ISNUMBER(1*MID(A2,ROW($1:$9),1)),0),COUNT(1*MID(A2,ROW($1:$9),1)))>=1,1*MID(A2,MATCH(TRUE,ISNUMBER(1*MID(A2,ROW($1:$9),1)),0),COUNT(1*MID(A2,ROW($1:$9),1)))<42),1*MID(A2,MATCH(TRUE,ISNUMBER(1*MID(A2,ROW($1:$9),1)),0),COUNT(1*MID(A2,ROW($1:$9),1))),"")
    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  6. #6
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: LOOKUP formula

    jmonteiro, welcome to the Board

    Going forward please try to post in most appropriate forum - I appreciate this is not as straightforward as it should be given the layout.

    This thread has been moved to Worksheet Functions from Tips & Tutorials - the latter being a non-Question orientated forum.

  7. #7
    Registered User
    Join Date
    02-09-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: LOOKUP formula

    It depends what the value is you want to match I think

    For a set value enter into B1

    Code:
    =IF(A1="Value",A1,"")
    and fill down.

    To return matches between columns A and B, in the relevant cell in column C, enter this into A1 and fill down

    Code:
    =IF(A1=B1,A1,"")

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.2.0