+ Reply to Thread
Results 1 to 3 of 3

Sorting Column with formula, ignore blank cells

  1. #1
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    456

    Sorting Column with formula, ignore blank cells

    Hello,

    When I attempt to sort a column that has the following formula, from high to low, blank cells will show on top.

    Is there a way to adjust this formula to show a blank cell but keep the sorting for highest value on top?

    =IF(A20="","-",C20-D20)

    Thanks for any help.

    Nick

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,569

    Re: Sorting Column with formula, ignore blank cells

    Does this make any difference?

    =IF(A20="","",C20-D20)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-10-2012
    Location
    United States
    MS-Off Ver
    Office 365
    Posts
    456

    Re: Sorting Column with formula, ignore blank cells

    Hi AliGW, sorry ignore the "-" I was testing that, the original formula was

    =IF(A20="","",C20-D20)

    If I use that formula and the result is blank, it will sort those on top when sorting high to low. "Z to A"

+ 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. Concatenate cells with 5 characters each column but ignore if blank
    By ghiegomez in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-25-2020, 12:09 AM
  2. Ignore blank cells if cell in column C is empty
    By Chris220 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2019, 06:08 AM
  3. [SOLVED] Formula to ignore blank cells with SUM?
    By Mr.Castle in forum Excel General
    Replies: 7
    Last Post: 08-20-2018, 05:12 PM
  4. [SOLVED] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  5. Ignore blank cells using formula
    By tcubed13t in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2014, 09:12 PM
  6. Count number of cells in column per month, ignore blank cells
    By lamdl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2014, 08:50 PM
  7. Average the last 10 cells of a dynamic column but ignore blank cells & 0
    By mattadler22 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-13-2013, 11:37 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