+ Reply to Thread
Results 1 to 6 of 6

Index, Match and large formulas together

  1. #1
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Index, Match and large formulas together

    Hi,
    I have attached a sample of a spreadsheet where I am trying to create a formula that will show, Index, Match and large, but from more than I place. Please see the sample and I am sure you experts will understand what I am after.
    Looking forward to someone showing me what to do to achieve this, Thanks in advance,
    Tony
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Index, Match and large formulas together

    I'm not sure if you just want the name and hours in separate cells, or a combination of name and hours worked in one cell, for each column.

    If you want them in separate cells, put these two formula above/below your table, in column F (e.g. F19 and F20) and drag across to column J:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You can add text using &, like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you want the name and hours together in one cell, use this, dragged across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    You'll need to Wrap Text (Home tab, Alignment section) to see the results in full.


    Does one of those do what you want?
    Last edited by Aardigspook; 01-22-2018 at 03:02 PM. Reason: Add note about adding text with &
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: Index, Match and large formulas together

    Hi, Aardigspook,
    Thanks for trying to help with this it is really appreciated. I am just a beginner to Excel and have copied and pasted these examples of yours, however it is just returning "false". Have you any ideas?

    Thanks in advance,
    Tony

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Index, Match and large formulas together

    I'm guessing you're applying them to a real file, not the sample file? So it's probably because the ranges aren't quite right.

    I'll go through the longest formula, explaining what each bit does, so you can understand what you might need to change.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    First, let's split out the different parts which have been joined together. The overall formula consists of two smaller formulae (the ones listed separately in my previous post), along with some text in between.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The & symbol tells Excel to join two things together.
    For example, if you have a formula which adds two cells (like =A1+A2), you could put 'The total is' before the result like this: ="The total is " & A1+A2
    This would give you a result like this (let's assume that A1 is 10 and A2 is 5): The total is 15
    Note that the text is enclosed in quotation marks, including a space so that you get a space before the number. I've also put spaces around the & sign, but that's just for clarity; it could be compressed to: ="The total is "&A1+A2

    So, the formula I gave you uses these & signs to give you:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Large
    Let's look at the Large formula first, as it's embedded in the Index-Match one, so it's easiest to explain this way round.
    The format of the Large function is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    range = the range you want to find the largest value in
    k = a number which says that you want the k-largest number
    So if you had 8,11,14,21 in A1:A4, then you could use Large like this:
    LARGE ( A1:A4 , 1) would give 21 - the largest number
    LARGE ( A1:A4 , 3) would give 11 - the third-largest number
    Therefore, in the Large formula I gave you, the function looks at the range F$4:F$17 and finds the largest number in it. For column F, this is 72. For col G, it's 14.

    (I'm going to assume you understand what the $ symbol means - if not, have a look at this page: https://support.office.com/en-gb/art...e-5f0d8d0baca9)


    Index-Match
    As you'd expect, this is made up of two functions: Index and Match
    The format of the Index formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    array = the range from which you want to get a result
    row number = the row that result is in
    column number = the column that result is in
    The most common use of Index looks at just one column, so the column number isn't needed and can be missed out - so giving just INDEX ( array , row no ). The row number is often found by using the Match function, which has this format:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    lookup value = the value you want to find in the lookup array
    lookup array = the range where you want to find the value
    match type = normally 0, to specify an exact match
    So, if you have the same numbers in A1:A4 as before (8,11,14,21) and you use this formula:
    =MATCH ( 14 , A1:A4 , 0 )
    you will get a result of 3, because the value 14 is in the third row of the array. Note that it's the row of the array which is returned, not the row number visible in Excel - if the numbers were in A10:A13, you'd still get the same result of 3.

    So, since Match gives us a row number, we can use it inside the Index function:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Going back to the Index-Match formula I gave you, this is how it breaks down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    $C$4:$C$17 & " " & $D$4:$D$17 = the range you want as a result - it's a combination (using &) of columns C and D (first and last names)
    MATCH ( LARGE ( F$4:F$17 , 1 ) , F$4:F$17 , 0 )
    F$4:F$17 = the range from which you need to get the row number of a value - the value you want to look up is the largest number in that range, which is where the Large function comes in - as explained earlier.
    So, in words, the formula is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    That's a horribly long and convoluted explanation, sorry. I've also attached your file, with all the formulae in it, a bit colour-coded to try to show what refers to what.
    I hope that's of some help. If it's still not working, please let us know.

  5. #5
    Forum Contributor
    Join Date
    07-26-2017
    Location
    west midlands
    MS-Off Ver
    365
    Posts
    182

    Re: Index, Match and large formulas together

    Hi Aardigspook,
    This is fantastic and exactly what I required, you have taken a lot of time and explained everything perfect, thank you.
    I shall mark this down as solved and I will certainly be adding the reputation.

    Thanks soooooo much,
    Tony0731

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Index, Match and large formulas together

    You're welcome, glad I could help. Thanks for the rep and marking this 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. [SOLVED] Large Data - Index Match Match with another function?
    By d7882 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-12-2017, 03:51 PM
  2. Index Large Match
    By normanbox in forum Excel General
    Replies: 3
    Last Post: 04-11-2017, 04:18 PM
  3. Replies: 3
    Last Post: 07-16-2012, 09:00 AM
  4. INDEX, MATCH and LARGE
    By ridebikes in forum Excel General
    Replies: 1
    Last Post: 10-24-2011, 04:03 PM
  5. Index, Match, and Large
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2006, 06:10 PM
  6. Large Index Match Lookup
    By Qaspec in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. Large Index Match Lookup
    By Qaspec in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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