+ Reply to Thread
Results 1 to 12 of 12

How to use INDEX+MATCH? Taxi question

  1. #1
    Registered User
    Join Date
    08-28-2020
    Location
    Singapore
    MS-Off Ver
    MS Excel 16.40
    Posts
    17

    How to use INDEX+MATCH? Taxi question

    I am thinking of using INDEX/MATCH or VLOOKUP to solve this question but I'm not sure how to go about doing it. Please advise. Thank you.
    Attachment 692834

    This is what I currently have.
    Attachment 692835
    Last edited by onewishtobegranted; 08-30-2020 at 10:42 AM.

  2. #2
    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
    80,460

    Re: How to use INDEX+MATCH? Taxi question

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook so you can show us your data and what you have tried.

    Nothing is more frustrating than to be working on homework and to get stuck. Without guidance, you might have no hope of finishing the assignment before the deadline. The Internet can be a big help in that respect, but without learning how to get the right answer, asking others to solve your homework questions for you simply becomes a downward spiral (and it's cheating).

    We do not want to contribute to you cheating yourself out of your education, but we also acknowledge that seeking assistance to learn a concept is a legitimate request.

    If you are genuinely interested in receiving help in the form of tutoring or coaching, then please rephrase the title of your original post to clearly indicate you are seeking coaching or tutoring help. Any forum members (who are willing to assist as a tutor) will modify their responses accordingly to facilitate your learning. Tutors don't tell you the answers, they help you figure it out for yourself; so don't expect answers, expect suggestions, or just plain hints. Also, be specific in describing the function/formula or technique you trying to learn, and tell us what you have attempted so far. Otherwise, expect your plea for homework answers to be ignored.
    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.

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

    Re: How to use INDEX+MATCH? Taxi question

    Something like this?
    Try to genarate Rate table
    Contruct a formula
    Then uoload a samle worksheet to see what we can assist more.
    Attached Images Attached Images
    Quang PT

  4. #4
    Registered User
    Join Date
    08-28-2020
    Location
    Singapore
    MS-Off Ver
    MS Excel 16.40
    Posts
    17

    Re: How to use INDEX+MATCH? Taxi question

    I have a sample worksheet attached above named TAXI.xlsx, is that format not applicable?

  5. #5
    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
    80,460

    Re: How to use INDEX+MATCH? Taxi question

    You have only just attached the workbook.

    What you have given us is a table. There are no workings, no attempted formulae. We need to see what you have done already to try to resolve this, then we can guide you and help you to correct your mistakes.

    We are not going to just do it for you - sorry.

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: How to use INDEX+MATCH? Taxi question

    I agree with Ali. I am not even sure what the boundaries are,

    If your first km is a standing rate and then you get billed every 400m or part there of to 10 km, the 9km do not divide evenly by 400m. So how do you wish to treat this.


    I would look at some tax examples where you get charged differing amounts for each band of your income. It will be similar to this once you have matched the type of vehicle first.


    Show us your attempt and we can attempt to guide you

  7. #7
    Registered User
    Join Date
    08-28-2020
    Location
    Singapore
    MS-Off Ver
    MS Excel 16.40
    Posts
    17

    Re: How to use INDEX+MATCH? Taxi question

    Hi, sorry for that. I admit it seems like I'm digging for answers.

    I have tried with vlookup and index+match but there seems to always been an error when I use vlookup. I'm not very sure if I have utilised my index+match formula correctly, if there are any improvements, please suggest. thank u!

    Attached below is my updated version of the excel worksheet.

    removed attachment < not sure of how to upload it properly
    Last edited by onewishtobegranted; 08-28-2020 at 10:40 AM.

  8. #8
    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
    80,460

    Re: How to use INDEX+MATCH? Taxi question

    OK - now we are getting somewhere.

    Explain in WORDS what you are trying to do - step-by-step - with this formula:

    =SUM(VLOOKUP($B9,$A$1:$H$4,2,FALSE),VLOOKUP($B9,$A$1:$H$4,3,FALSE)*ROUNDUP((MIN($D$3,$C9)-1)/$D$2,),VLOOKUP($B9,$A$1:$H$4,5,FALSE)*ROUNDUP(MAX($C9-$D$3)/F2,))

  9. #9
    Registered User
    Join Date
    08-28-2020
    Location
    Singapore
    MS-Off Ver
    MS Excel 16.40
    Posts
    17

    Re: How to use INDEX+MATCH? Taxi question

    Hi Ali, thanks for the fast reply!

    =SUM(VLOOKUP($B9,$A$1:$H$4,2,FALSE),VLOOKUP($B9,$A$1:$H$4,3,FALSE)*ROUNDUP((MIN($D$3,$C9)-1)/$D$2,),VLOOKUP($B9,$A$1:$H$4,5,FALSE)*ROUNDUP(MAX($C9-$D$3)/F2,))

    It is similar to how I split up my INDEX MATCH formula, it a sum of:

    - VLOOKUP($B9,$A$1:$H$4,2,FALSE) : price of first 1km
    - VLOOKUP($B9,$A$1:$H$4,3,FALSE)*ROUNDUP((MIN($D$3,$C9)-1)/$D$2,) : VLOOKUP($B9,$A$1:$H$4,3,FALSE) is the price of every 400m for each type of taxis, ROUNDUP((MIN($D$3,$C9)-1)/$D$2,) is to find out how many 400m there is in the distance
    - VLOOKUP($B9,$A$1:$H$4,5,FALSE)*ROUNDUP(MAX($C9-$D$3)/F2,) : ^ similar to above but for the 350m


    May I know if there are any suggestions with regards to my INDEX MATCH formula?
    Last edited by onewishtobegranted; 08-28-2020 at 09:22 AM.

  10. #10
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: How to use INDEX+MATCH? Taxi question

    No idea what you are up to, but this is that formula using INDEDX/MATCH

    =SUM(INDEX($B$1:$B$4,MATCH($B9,$A$1:$A$4,0)),INDEX($C$1:$C$4,MATCH($B9,$A$1:$A$4,0))*ROUNDUP((MIN($D$3,$C9)-1)/$D$2,),INDEX($E$1:$E$4,MATCH($B9,$A$1:$A$4,0))*ROUNDUP(MAX($C9-$D$3)/F2,))

  11. #11
    Registered User
    Join Date
    08-28-2020
    Location
    Singapore
    MS-Off Ver
    MS Excel 16.40
    Posts
    17

    Re: How to use INDEX+MATCH? Taxi question

    Hi Bob,

    Thank you. I see that my INDEX MATCH formulas are right. Is it a need to add the headers into the array? aka A1:A4

  12. #12
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: How to use INDEX+MATCH? Taxi question

    You are matching against those, so only in the MATCH function.

+ 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. Index / Match Question
    By xcracer41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-10-2018, 05:41 PM
  2. [SOLVED] Quick INDEX MATCH MATCH OFFSET question
    By franb123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-25-2017, 02:56 AM
  3. Index, match, match Question!. Seems so simple but can't figure it out...
    By huikimhuikim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 01:57 PM
  4. MATCH/INDEX IF question
    By lee4clp in forum Excel General
    Replies: 5
    Last Post: 08-07-2010, 10:58 AM
  5. Index/Match Question
    By mikera in forum Excel General
    Replies: 2
    Last Post: 01-07-2010, 07:01 PM
  6. Index/Match question
    By PhilH1982 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-01-2007, 08:26 AM
  7. [SOLVED] Index/match question.
    By Jules in forum Excel General
    Replies: 1
    Last Post: 07-08-2006, 11:10 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