+ Reply to Thread
Results 1 to 6 of 6

Formula to return 1st cell of filtered column, but leave blank if not filtered.

  1. #1
    Registered User
    Join Date
    09-24-2015
    Location
    Bentonville, AR
    MS-Off Ver
    2007
    Posts
    3

    Formula to return 1st cell of filtered column, but leave blank if not filtered.

    I have a simple table where I need the first item of the filtered column (G5:G1000) to show in cell G4. If the column is not filtered, I need G4 to remain blank. I need a formula if possible and not VBA or UDF.


    Thanks!
    HL

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Formula to return 1st cell of filtered column, but leave blank if not filtered.

    I'm fairly certain that there aren't any formulas that take into account whether or not a cell is in a filtered column.

  3. #3
    Registered User
    Join Date
    09-24-2015
    Location
    Bentonville, AR
    MS-Off Ver
    2007
    Posts
    3

    Re: Formula to return 1st cell of filtered column, but leave blank if not filtered.

    Ok, thank you. Do you know the formula to return the 1st filtered item then? Maybe I can work around it.

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Formula to return 1st cell of filtered column, but leave blank if not filtered.

    I'd suggest trying to determine a workaround. I don't think there are any formulas that will take filtering into account. I tried =OFFSET based off of a column header, but it didn't work. If you upload a sample file showing what you're trying to accomplish, perhaps someone can help you figure out a workaround.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula to return 1st cell of filtered column, but leave blank if not filtered.

    Are the items text or numeric? Is a dummy column okay?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    09-24-2015
    Location
    Bentonville, AR
    MS-Off Ver
    2007
    Posts
    3

    Re: Formula to return 1st cell of filtered column, but leave blank if not filtered.

    I actually need it to work for both text and numeric (two separate columns). Yes, a dummy column is okay.

+ 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] Add date to blank cell of a filtered worksheet
    By wmolitor in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 05:51 PM
  2. Filtered listbox selection to return value to related cell
    By Biffer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2014, 10:11 AM
  3. [SOLVED] Help! Select blank cell in a filtered list
    By yoko21 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2013, 01:02 PM
  4. Replies: 4
    Last Post: 03-04-2013, 01:41 AM
  5. Delete Filtered Rows - Leave Headings
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2012, 02:10 AM
  6. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  7. Delete filtered data, leave headers, error
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-05-2009, 12:22 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