+ Reply to Thread
Results 1 to 3 of 3

Need formula to return column header name for first entry on each row greater than zero

  1. #1
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Need formula to return column header name for first entry on each row greater than zero

    I'm currently using the formula =IFERROR(INDEX(startmonthsp,MATCH(TRUE,INDEX(ISNUMBER(E2:AR2),0),0)),""). The startmonthsp name refers to the months across the top of my pivot table. This formula works but I now need one small change. If the value in the columns are zero or less then I do not want the formula to return that column header (bypass it until it gets a positive value above zero).

    Attached is a workbook that shows my formula in action.
    Excel Forum Question.xlsx

  2. #2
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need formula to return column header name for first entry on each row greater than zer

    =IFERROR(INDEX(startmonthsp,MATCH(1,IF(E2:AR2>0,1),0)),"")
    Confirm Control+Shift+enter
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  3. #3
    Registered User
    Join Date
    02-29-2012
    Location
    Linthicum, MD
    MS-Off Ver
    Excel 2013
    Posts
    52

    Re: Need formula to return column header name for first entry on each row greater than zer

    Excellent, thank you so much for your help and quick response.

+ 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] Formula to index each column and return whole number greater than zero below Yes OR No
    By Martin Chamberlin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2013, 12:24 AM
  2. lookup formula to return data where column header matches
    By tim-harrison in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-06-2013, 12:58 AM
  3. Replies: 6
    Last Post: 11-30-2012, 02:48 PM
  4. [SOLVED] Formula to find first negative number in row and return column header
    By spoonedmango in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2012, 02:08 PM
  5. [SOLVED] Formula Needed to Return Entire Column Under Header on Second Sheet
    By bigtunelover in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 11:19 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