+ Reply to Thread
Results 1 to 8 of 8

how to look up a name and return heading.

  1. #1
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    how to look up a name and return heading.

    I have a sheet filled with different data which is classified by years (Part1 in the attached file). now I need to classify them by Names (Part2).
    How can I use the Vlookup for different "Name" so that it returns the year? (/to return a checkmark when the name exists in a certain year)
    or is there a better function?
    Attached Files Attached Files

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

    Re: how to look up a name and return heading.

    Please try at
    B21
    =SUMIFS($B$6:$J$14,$A$6:$I$14,A21)

    C21:F21
    =IF(COUNTIF(INDEX($A$5:$K$14,,MATCH(C$19,$A$3:$K$3,)),$A21),"✅","")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Re: how to look up a name and return heading.

    I tried this and it doesn't return anything.
    I only changed the $A$5:$K$14 to 'sheet2'!$A$5:$K$14
    Last edited by AliGW; 05-11-2020 at 08:22 AM. Reason: Please don't quote unnecessarily!

  4. #4
    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,410

    Re: how to look up a name and return heading.

    Try these, then:

    B21
    =SUMIFS($B$6:$J$14,'Sheet2'!$A$6:$I$14,A21)

    C21:F21
    =IF(COUNTIF(INDEX(Sheet2'!$A$5:$K$14,,MATCH(C$19,Sheet2'!$A$3:$K$3,)),$A21),"✅","")
    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.

  5. #5
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Re: how to look up a name and return heading.

    I selected the table while writing the formula and this is how it looks:
    =IF(COUNTIF(INDEX('Sheet2'!$J$5:$EN$192;;MATCH(H$4;'Sheet2'!$J$2:$EN$2; ));$D7);"ü";"")

    (H$4=C$19, $D7=$A21, "ü" from symbols)
    Last edited by (T_T); 05-11-2020 at 09:09 AM.

  6. #6
    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,410

    Re: how to look up a name and return heading.

    Guten Tag!

    The umlauted 'u' (ü) returns a tick in the Wingdings font.

    Do you still need help with this? It's not clear from your last post.

  7. #7
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Re: how to look up a name and return heading.

    Guten Tag! ^_^

    Yes, the formula still doesn't return anything.
    sorry my last reply wasn't clear. I wrote it to see if there is a problem there.

    I tried COUNTIF(INDEX('Sheet2'!$J$5:$EN$192;;MATCH(H$4;'Sheet2'!$J$2:$EN$2; ));$D7 and it returns 0, where it should be 1. But I still can't figure out the problem
    Last edited by (T_T); 05-12-2020 at 05:45 AM.

  8. #8
    Forum Contributor
    Join Date
    05-05-2020
    Location
    Germany
    MS-Off Ver
    2013
    Posts
    100

    Re: how to look up a name and return heading.

    Thank you both!

    I found the problem and it works now

+ 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. Return Column Heading IF row value is below 60
    By DentonHTHS in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-23-2016, 02:01 PM
  2. [SOLVED] Return heading of a column
    By froment in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-22-2014, 03:35 AM
  3. [SOLVED] Return with heading value
    By wintheranders in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-09-2014, 07:15 AM
  4. [SOLVED] Return the Row Heading with Max Value in Table
    By BLS99covert in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-24-2014, 04:49 AM
  5. look up row and col heading and return cell information
    By turbo600hp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2013, 02:54 PM
  6. How do you return heading back to normal?
    By rhino1616 in forum Excel General
    Replies: 3
    Last Post: 11-06-2008, 01:24 AM
  7. Return the heading value of MIN Range
    By Mike_Dean in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2008, 05:32 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