+ Reply to Thread
Results 1 to 3 of 3

Display content of first cell that has any value

  1. #1
    Registered User
    Join Date
    04-20-2009
    Location
    San Francisco
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Display content of first cell that has any value

    I have a employee table that shows employee name and last login to the system. Employee can login through computer 1 thru 5. So the data looks like this

    NAME COMPUTER1 COMPUTER2 COMPUTER3 COMPUTER4 FIRST LOGIN
    JOHN Tue Mar 25 08:45:13 PDT 2014 Tue Mar 25 08:45:13 PDT 2014 Tue Mar 25 08:45:13 PDT 2014 Tue Mar 25 08:45:13 PDT 2014 Should show value from cell B2
    MARY Tue Mar 25 08:45:13 PDT 2014 Should show value from cell C3
    KEVIN Tue Mar 25 08:45:13 PDT 2014 Should show value from cell E4
    HANLEY Tue Mar 25 08:45:13 PDT 2014 Tue Mar 25 08:45:13 PDT 2014 Should show value from cell C5
    ERIC Tue Mar 25 08:45:13 PDT 2014 Should show value from cell B6


    So from the above excel, I want to just pick the first login irrespective of which system. User can login from two systems at a same time, so just like above same timestamp could end up across two different cells.

    I am currently using below formula, but its not working when the first timestamp is in column 3, 4 or 5. It's only working when value is in column 1.
    =INDEX(B2:E2,MATCH("*",B2:E2,0))

    Please help.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Display content of first cell that has any value

    Your formula works perfectly for me, on that data, when entered into cell F2 and copied down F3:F6.

    When you say 'not working', what is actually being returned?
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    04-20-2009
    Location
    San Francisco
    MS-Off Ver
    Microsoft Excel for Mac 2011
    Posts
    5

    Thumbs up Re: Display content of first cell that has any value

    Thanks for checking Olly.

    My formula was not working because I had these timestamps pull via VLOOKUP and then using IFERROR I was marking all errors as blank "".

    After removing the IFERROR, my formula worked.

    Thanks
    Moiz

+ 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] display picture according to a cell content
    By Osvaldo Palmeiro in forum Excel General
    Replies: 11
    Last Post: 04-10-2012, 05:01 PM
  2. Display Rows According to Cell Content
    By BazzaBoy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2010, 03:36 AM
  3. Cell content display
    By krislaks in forum Excel General
    Replies: 1
    Last Post: 08-24-2010, 08:17 AM
  4. display content of a cell with conditions
    By kirk in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2007, 01:54 PM
  5. Display cell content in message box.
    By ledzepe in forum Excel General
    Replies: 1
    Last Post: 12-01-2006, 11:53 AM

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