+ Reply to Thread
Results 1 to 8 of 8

finding the correct codes

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    44

    finding the correct codes

    Dear all,

    I have a problem fixing the formula using VLOOKUP and IF function.. can somebody try to help me? thank you in advance... attached is a sample table...
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: finding the correct codes

    Your problem was you had FALSE instead of TRUE on the VLOOKUPs
    and you can shorten that code to this

    in L3
    =IF(I3="B",VLOOKUP(K3,IF(J3="UNS",$E$13:$F$17,IF(J3="SEC-1",$E$18:$F$23,$E$24:$F$29)),2,TRUE),"Not Found")
    and copy down
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: finding the correct codes

    I advice you NOT to work with merged cells, you get in trouble with it sooner or later.

    With a couple of helpcolumns and indirect I made this solution.

    I bet there is a neater solution, but it works.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: finding the correct codes

    Formula in L3 then dragged down.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: finding the correct codes

    L3
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Registered User
    Join Date
    11-22-2012
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: finding the correct codes

    To: Special-K, oeldere, kvsrinivasamurthy & nflsales

    Thanks to all of you.... I've tried all your formula and it all worked. I really appreciate your time and effort... thanks a lot.

    Marj

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: finding the correct codes

    You're welcome. We appreciate the feedback!

    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  8. #8
    Registered User
    Join Date
    11-22-2012
    Location
    Laguna, Philippines
    MS-Off Ver
    Excel 2016
    Posts
    44

    Re: finding the correct codes

    Thank you oeldere ....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 09-14-2015, 10:10 PM
  2. Correct the codes - Open, copy & Paste
    By kit370 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2014, 02:02 PM
  3. [SOLVED] Finding the correct value
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-09-2013, 08:17 AM
  4. Screening formula to flag correct zip codes
    By pgiger in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-30-2012, 03:31 PM
  5. [SOLVED] How to verify addresses and zip codes are correct? In bulk...
    By motol in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2006, 02:00 AM
  6. finding percentages of a list of zip codes
    By turkishgolds in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 12:48 AM
  7. Finding 13 character codes in text strings
    By Bhupinder Rayat in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2006, 12:20 PM

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