+ Reply to Thread
Results 1 to 2 of 2

Get column header - start and end date based on first and last value encounter in the ro

Hybrid View

  1. #1
    Registered User
    Join Date
    11-13-2020
    Location
    India
    MS-Off Ver
    365
    Posts
    1

    Question Get column header - start and end date based on first and last value encounter in the ro

    Hey Guys,

    I am working on the excel sheet, in which i want the start date and last date based the value from the rows. If cell have encounter any value greater than zero, it will return the column header of the first value and last column header on that row range

    Start Date End Date 23-Mar 30-Mar 06-Apr 13-Apr 20-Apr 27-Apr 04-May 11-May
    0 0 1 3 4 5 0 0
    0 0 2 4 2 5 0 0


    Screenshot_1.jpg

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Get column header - start and end date based on first and last value encounter in the

    Start:
    =INDEX($C$1:$N$1,MATCH(TRUE,INDEX((C2:N2<>0),0),0))

    End
    =LOOKUP(2,1/(C2:N2<>0),$C$1:$N$1)

    See sheet. Next time, please attach a sample sheet, not a non-editable picture of one. See yellow banner (top of page) for instructions.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Replies: 4
    Last Post: 01-11-2020, 02:38 PM
  2. Sum row values based on a column header date
    By Jacehigh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-03-2018, 09:47 AM
  3. Find a Vendor based on which date it will first encounter.
    By Bob Drinksen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2018, 05:59 PM
  4. [SOLVED] Deleting column based on Column header date less than today
    By daryl83 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2017, 02:44 PM
  5. Finding a column value based on date and column header
    By soready42012 in forum Excel General
    Replies: 0
    Last Post: 01-18-2012, 06:21 PM
  6. Replies: 3
    Last Post: 09-01-2011, 01:47 PM
  7. Populating column with dates based on start and end date
    By mdavid800 in forum Excel General
    Replies: 5
    Last Post: 08-07-2011, 12:49 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