+ Reply to Thread
Results 1 to 12 of 12

Find the vehicle number from other column

  1. #1
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Find the vehicle number from other column

    hi all


    I want to find the vehicle number that is in column "B". But before the vehicle number in column "B" is checked first if there is a number in column "C", if it is in column "C", then display the vehicle number (from column B). If there is no column "C" then make it "0" or empty. please kindly help



    thank you...

    regard

    dolphino

  2. #2
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    this is sample from my thread.

    attaached.
    Attached Files Attached Files

  3. #3
    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
    52,926

    Re: Find the vehicle number from other column

    I dont understand what you are doing here

    you say....
    if there is a number in column "C", if it is in column "C", then display the vehicle number (from column B). If there is no column "C" then make it "0"
    All cells in col C contain data, but your results show 3 0's??
    Also, the contents of C4 (which you show as 0) can be found in B8?
    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

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find the vehicle number from other column

    Maybe try
    E4
    =IF(C4>0,SUBSTITUTE(MID(B4,SEARCH("(? * *)",B4)+1,10),")",),0)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    hi FDibbins

    i'm sorry if make u confuse,

    i mean. i first check the vehicle number if it is in column "c." if there is in column "c", then vehicle number there is in column "b" is showed. example cell "b5", column "b" is the vehicle number b 1655 paa, if check to column "c" vehicle number is there. then then the number is presented as a result (cell e5). please kindly help.


    thankyou

    dolphino

  6. #6
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    hi Bo_Ry


    thank you before from your help. but for cells E4, E7, E11 should return "0" / zero because the vehicle numbers in cells b4, b7, b11 are not in column C .


    regard

    dolphino

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find the vehicle number from other column

    Try

    =IFERROR(VLOOKUP(SUBSTITUTE(MID(B4,SEARCH("(? * *)",B4)+1,10),")",),$C$4:$C$11,1,0),0)


    =IFNA(VLOOKUP(SUBSTITUTE(MID(B4,SEARCH("(? * *)",B4)+1,10),")",),$C$4:$C$11,1,0),0)
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    HI Bo_Ry

    That right, your formulla is working correctly. im verry happy

    thank you very much.


    regard


    dolphino

  9. #9
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    Hi all,

    still from my thread,

    It turns out that in my data there is a condition where the vehicle number has no opening and closing brackets. If conditions like this, what additional formulas do I need to add to CELL E12, E13, E14 ?

    sample new attached... kindly help for this.

    thank you

    regard
    dolphino
    Attached Files Attached Files

  10. #10
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find the vehicle number from other column

    try

    =IFERROR(LOOKUP(0,-FIND($C$4:$C$14,B4),$C$4:$C$14),0)
    Attached Files Attached Files

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

    Re: Find the vehicle number from other column

    Try to search column C in B4, if found, return relative V-id:
    In E4:

    Please Login or Register  to view this content.
    Quang PT

  12. #12
    Forum Contributor
    Join Date
    12-29-2014
    Location
    Indonesia
    MS-Off Ver
    Office 2010, 2013
    Posts
    125

    Re: Find the vehicle number from other column

    Hi Bo_Ry

    okay, that true. you on of the best .

    thank you .

    regard
    dolphino

+ 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. Vehicle Time Table in Excel to Vehicle Movement Graph in Excel
    By Petrus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2019, 04:54 AM
  2. Index vehicle, driver and vehicle wise revenue report.
    By dackson in forum Excel Formulas & Functions
    Replies: 41
    Last Post: 06-02-2017, 01:40 AM
  3. Replies: 3
    Last Post: 12-20-2016, 02:29 AM
  4. [SOLVED] Vehicle Registration Number Entry Help
    By Flunter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-19-2013, 05:27 PM
  5. Replies: 1
    Last Post: 06-10-2013, 07:08 PM
  6. Replies: 2
    Last Post: 01-30-2013, 12:06 PM
  7. [SOLVED] VBA Userform - Add new vehicle number to list
    By Hilton1982 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2012, 12:38 AM

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