+ Reply to Thread
Results 1 to 11 of 11

finding or matching data

  1. #1
    Registered User
    Join Date
    11-03-2008
    Location
    Wales
    MS-Off Ver
    office 2007/excel 2003
    Posts
    15

    finding or matching data

    Ok so this has been bugging me for a week or so and i have attempted many functions to no avail.

    My spreadsheet consists of two columns, column A holds a series of numbers whilst column B, again holds a series of numbers but with an added single letter on the end.

    What I would like to do is find a function which will match the numbers and letter in column B with the corresponding numbers in column A and then place the result in column C. eg

    A B C
    9111111 1234567H 9111111B
    6789109 4567888
    1234567 9111111B 1234567H

    Hope that make sense anyway.

    Any help on that would be great as I am not the greatest at functions.

    James
    Last edited by VBA Noob; 11-09-2008 at 12:36 PM.

  2. #2
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    Are you looking to Swap "B" to "H" and vice versa from the end?

    Quote Originally Posted by langdon37 View Post
    What I would like to do is find a function which will match the numbers and letter in column B with the corresponding numbers in column A and then place the result in column C. eg

    A B C
    9111111 1234567H 9111111B
    6789109 4567888
    1234567 9111111B 1234567H

    James
    Are you looking to Swap "B" to "H" and vice versa from the end?

    If that's so, then.. you can do the below

    HTML Code: 
    try this out!

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    in c
    Please Login or Register  to view this content.
    dragged down
    will search col b for first match
    or to hide n/a if it doesnt find it

    Please Login or Register  to view this content.
    Last edited by martindwilson; 11-09-2008 at 10:00 AM.

  4. #4
    Registered User
    Join Date
    11-03-2008
    Location
    Wales
    MS-Off Ver
    office 2007/excel 2003
    Posts
    15
    No, not looking to swap the letters just merely for the series of numbers with the letter on the end to find the matching number in column A and input the match in cell C.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    have you tried what i posted? it gives the same results as your example!

  6. #6
    Registered User
    Join Date
    11-03-2008
    Location
    Wales
    MS-Off Ver
    office 2007/excel 2003
    Posts
    15
    i did try it however to no avail.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    i'm suprised unles your data has some spaces or something or not in the format you posted
    see attached formula in c and dragged down
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    11-03-2008
    Location
    Wales
    MS-Off Ver
    office 2007/excel 2003
    Posts
    15
    SCRUB THAT, my eyesight is failing me, gone number blind. your code worked perfectly.

    thanks

  9. #9
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    I think my code also was giving the same output

    Langdon,

    I think my code also was giving the same output as martindwilson
    Did u try that?

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    e4excel i think you mis-understood the problem
    the list was quite short so perhaps a longer example would have clarified it
    what the op wanted to do was search using the value from say A1 in the
    range b:b and if a match was found return that value but since
    9111111 would not match 9111111H a wild card is used effectively
    "find 9111111* in range b:b if found return that value " which in this case was 9111111H , but it may well have been 9111111D if that was in the table instead of 9111111H

  11. #11
    Registered User
    Join Date
    11-03-2008
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    2,521

    No problem...

    Dear Martin,

    Perhaps you are right, Im aware of the Wildcard character usage,however honestly i was not able to understand the query honestly and based my code on the solution in Col C...

    But thanks anyways...

+ 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