+ Reply to Thread
Results 1 to 25 of 25

Matching from a Range

  1. #1
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Matching from a Range

    I want to match the Check Numbers from a range and to find the name to whom the check is issued. ,e.g., ch no. 12521 is lies between 12501 to 12600 and it has issued to AB. Ch number is given in sheet "CHK" and Range of check and and to whom the check has issued is given in sheet "BB". How I can find the name of the person?
    Attached Files Attached Files
    Last edited by chandan12; 04-26-2013 at 03:06 PM. Reason: Want to attach a file

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Matching from a Range

    Try this, coped down...

    =VLOOKUP(A2,BB!$A$2:$C$17,3,TRUE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Thumbs up Re: Matching from a Range

    Thanks, it has solved my problem.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Matching from a Range

    happy to help and thanks for the feedback

  5. #5
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    FDibbins, sorry. But it is working only when the numbers are in ascending. It is not giving accurate result where the numbers are not in ascending order.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Matching from a Range

    yes that is correct. Can you sort your data?

  7. #7
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    If your data is not Sort you can use this formulas
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    dhn46,

    This formula is returning the last numbers of check book instead of name of the person which I want to know.

  9. #9
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    Quote Originally Posted by chandan12 View Post
    dhn46,

    This formula is returning the last numbers of check book instead of name of the person which I want to know.
    My formulas returning the value of brach column, dont you want this value? Sorry my English not good. Please see file, if wrong, can you up the example result.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    I am not getting the same result. Look at my worksheet. I have just changed the check numbers in sheet "CHK" and out of 38 entry only 8 are giving correct result. Hope your guidance.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    Quote Originally Posted by chandan12 View Post
    I am not getting the same result. Look at my worksheet. I have just changed the check numbers in sheet "CHK" and out of 38 entry only 8 are giving correct result. Hope your guidance.
    Hi chandan12!
    I compared the formula in #2 with fomula in #37 when the numbers are in ascending, so i didn't find the diferrence. Can you upload your File with the result was type by hand?

  12. #12
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Matching from a Range

    So the given range is not in sequence, i.e: 59201-59300, next 109801-109900, then the CHQ # 100000 returns "Not availabe"?
    If yes, try:
    Please Login or Register  to view this content.
    Quang PT

  13. #13
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    Please see attach file with my previous reply. The name is "my book".

  14. #14
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    bebo021999! I have tried with your help but getting "#NAME?" in all cells. I am using Office 2003.

  15. #15
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    You Try this formula
    Please Login or Register  to view this content.
    The end: Ctrl + Shift + Enter

  16. #16
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    dhn46

    Getting "Not Available" for all and which is not true.

  17. #17
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    Quote Originally Posted by chandan12 View Post
    dhn46

    Getting "Not Available" for all and which is not true.
    Hi chandan12!
    The formula in #15 is the Array fomula
    You must Ctrl + Shift + Enter, not Enter
    Please see file to view the result.
    Attached Files Attached Files

  18. #18
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Matching from a Range

    Hello,

    You can use this Array formula
    Please Login or Register  to view this content.
    Because it is an Array formula, you will need to confirm with Ctrl-Shift-Enter. If you see the formula being wrapped inside a { } then you did it right.

    Here is your sample file with the formula on Column E.
    Attached Files Attached Files
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  19. #19
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Thumbs up Re: Matching from a Range

    Quote Originally Posted by dhn46 View Post
    Hi chandan12!
    The formula in #15 is the Array fomula
    You must Ctrl + Shift + Enter, not Enter
    Please see file to view the result.
    Yes, got it.
    Thanks.

  20. #20
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Thumbs up Re: Matching from a Range

    Quote Originally Posted by Lemice View Post
    Hello,

    You can use this Array formula
    Please Login or Register  to view this content.
    Because it is an Array formula, you will need to confirm with Ctrl-Shift-Enter. If you see the formula being wrapped inside a { } then you did it right.

    Here is your sample file with the formula on Column E.
    Yes. Thanks. I have no idea about accepting an array formula in this way. My problem has solved.

  21. #21
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    I already marked the thread as solved. But the array function is taking time to load the file. Can we solve the problem without Array Function?

  22. #22
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Matching from a Range

    You can try this formula then
    Please Login or Register  to view this content.
    Enter it as normal. You don't have to enter it as array.

    And also you should make a helper column to "erase" the #N/A instead of putting it into an ISERROR, because it will just make the formula calculating twice.

  23. #23
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    Quote Originally Posted by Lemice View Post
    You can try this formula then
    Please Login or Register  to view this content.
    Enter it as normal. You don't have to enter it as array.

    And also you should make a helper column to "erase" the #N/A instead of putting it into an ISERROR, because it will just make the formula calculating twice.
    Thanks. I shall try it. Please note, the numbers of entry in BB sheet will increases day by day and it may go upto row 65000.

  24. #24
    Registered User
    Join Date
    03-12-2013
    Location
    Viet Nam
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Matching from a Range

    Quote Originally Posted by chandan12 View Post
    Thanks. I shall try it. Please note, the numbers of entry in BB sheet will increases day by day and it may go upto row 65000.
    Hi chandan12
    If the numbers of entry in BB sheet will increases day by day and it may go upto row 65000 you shouldn't use Fomula. I think VBA method is better method for this case. See my file, press Run button to view result.
    Attached Files Attached Files

  25. #25
    Registered User
    Join Date
    07-23-2007
    Posts
    34

    Re: Matching from a Range

    dhn46

    Could you tell me the ways to use it in VBA method.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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