+ Reply to Thread
Results 1 to 9 of 9

Fill in the according vehicle nr

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Antwerp
    MS-Off Ver
    Excel Office 365
    Posts
    7

    Fill in the according vehicle nr

    Littlebit stuck over here,

    I have a datalist (blue background) of vehicle numbers attached to names.

    In the yellow field, a cell should be filled with a vehicle number, if one of the names beside it, can be found in the datalist below.

    So the field B3 should by formula be filled wit 503 and the field B5 with 501.
    Attached Images Attached Images

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Fill in the according vehicle nr

    1. are you still using Excel 2003? If not, please update your profile.

    2. you have your sample in front of you. Please post the sheet, not a non-editable picture of it!! (see yellow banner -top - for instructions)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-16-2013
    Location
    Antwerp
    MS-Off Ver
    Excel Office 365
    Posts
    7

    Re: Fill in the according vehicle nr

    I'll update my profile right away, i'm using the latest excel version
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Fill in the according vehicle nr

    OK. In B2, copied down:

    =IFERROR(INDEX(B:B,AGGREGATE(14,6,ROW($B$11:$B$15)/(--ISNUMBER(MATCH($C$11:$D$15,D2:E2,0))),1)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-16-2013
    Location
    Antwerp
    MS-Off Ver
    Excel Office 365
    Posts
    7

    Re: Fill in the according vehicle nr

    Super thanks, you're a genius.
    I understand the formula for the most, but where do the numbers 14 and 6 in the aggregate part refer to.

  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
    52,942

    Re: Fill in the according vehicle nr

    Type in =AGGREGATE( and it will show you what the various numbers represent
    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

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,126

    Re: Fill in the according vehicle nr

    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: Fill in the according vehicle nr

    Hi All,

    another approach if datalist are numbers

    =MAX(SUMPRODUCT(SUMIFS(B$11:B$15,C$11:C$15,D2:E2)),sumproduct(sumifs(B$11:B$15,D$11:D$15,D2:E2)))

    You could hide zeros formatting the cell as "#.##0,,"

    or

    =MAX(SUMIFS(B$11:B$15,C$11:C$15,D2:E2),SUMIFS(B$11:B$15,D$11:D$15,D2:E2))

    array entered: control+shift +enter


    Regards
    Attached Files Attached Files
    Last edited by canapone; 01-28-2021 at 02:34 AM.
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,099

    Re: Fill in the according vehicle nr

    If you want a fuller explanation of the formula, just ask. If not, then...

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

+ 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. Vehicle Configurations
    By goatbrother70 in forum Excel General
    Replies: 3
    Last Post: 05-06-2014, 10:47 PM
  4. Replies: 2
    Last Post: 01-30-2013, 12:06 PM
  5. Vehicle Age
    By kingcal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2008, 06:17 PM
  6. Vehicle Age
    By Badvgood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2007, 01:20 AM
  7. Vehicle Age
    By chris2403 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-16-2007, 11:19 AM

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