+ Reply to Thread
Results 1 to 9 of 9

What can i use to display a category title based on a cells value?

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Hereford, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Smile What can i use to display a category title based on a cells value?

    Hi guys, apologies for the confusing title but i am really stuck on this one!

    I am completing a spreadsheet and in it i have a column of peoples ages.

    next to this column i have a further 6 columns named:
    18-25 26-54 55-59 60-64 65-74 75+

    With this, dependant upon a persons age, i would manually tick the corresponding category in which their age falls into, for example:

    AGE 18-25 26-54 55-59 60-64 65-74 75+
    35 x

    Is there any way i can use a formula to calculate what category the age falls under?
    or,
    can i use 1 column to define the category based on the age value to display their age category?

    Apologies for any confusion caused, i would attach the spread sheet but there is too much sensitive data on there

    ANY help is GREATLY appreciated.

    regards,

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What can i use to display a category title based on a cells value?

    No need to attach your real workbook. A small sample would be perfect..
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    Hereford, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: What can i use to display a category title based on a cells value?

    excel forum.xlsx


    Please find a sample of this attached :D

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What can i use to display a category title based on a cells value?

    In H3 and copy down?

    =INDEX($B$2:$H$2,MATCH(1,B3:H3,0))

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    Hereford, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: What can i use to display a category title based on a cells value?

    Brilliant thank you, i have got that to work,

    hiowever, i do not want to have to manually input any data on this sheet, i would just for the index formual to match the age against the category and list it in one colum.

    if possible?

    regards,

  6. #6
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: What can i use to display a category title based on a cells value?

    use IF() and AND() Funtion
    Attached Files Attached Files

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What can i use to display a category title based on a cells value?

    Quote Originally Posted by smithjon View Post
    Brilliant thank you, i have got that to work,

    hiowever, i do not want to have to manually input any data on this sheet, i would just for the index formual to match the age against the category and list it in one colum.

    if possible?

    regards,
    Do you mean?

    =INDEX($B$2:$H$2,MATCH(A3,B3:H3,1))

  8. #8
    Registered User
    Join Date
    04-09-2013
    Location
    Hereford, England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: What can i use to display a category title based on a cells value?

    Totally confused,

    Fotis1991, im sure your on the right track here but it is still not doing what i owuld idealisticaly like it to do, i am not a pro on excel by any means.

    could you input the formula on the attached sample please so i can see this working? i need to be able to includ column H in that index and display the categories in column I,

    apologies!

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What can i use to display a category title based on a cells value?

    .............................
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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