LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default sorting: cleared/null v/s ""

When you sort in Ex2010, a cell with a value of "cleared/null" (set so
via mouse menu "Clear Contents" or vba range.ClearContents.) gets you
a result with nulls last in both sorts - ascending and descending.

However, if you set the cell's "empty value" as an empty string, = "",
they are considered "values" and sort. I see posts that claim "" ==
null. It doesn't seem so.

I have a formula that, based on existence of a date, sets a value in a
cell. I want either a date or CLEAR/NULL but can't find something
that actually clears or nulls the value. I'm guessing I'll have to
create a UDF (if I can actually set a null with a return "value"). Is
that correct?

Have

=IF(
AND(
NOT(ISNA(VLOOKUP(D10,nt_po_number,2,TRUE)))
),
VLOOKUP(D10,nt_po_number,2,TRUE),
""
)

Want

=IF(
AND(
NOT(ISNA(VLOOKUP(D10,nt_po_number,2,TRUE)))
),
VLOOKUP(D10,nt_po_number,2,TRUE),
NULL
)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting a text strings but omitting preceding "A" or "The" Pablo Excel Worksheet Functions 2 December 15th 09 10:10 PM
sheet protected but cells "cleared of all" become locked Glen Excel Discussion (Misc queries) 4 August 8th 07 10:33 PM
Null, "null", vbNull, vbNullString, vbEmpty [email protected] Excel Programming 2 July 25th 06 01:28 PM
cells formatted to tick when text value "Y" if or null if "N" Jay Excel Discussion (Misc queries) 7 January 13th 06 09:16 AM
"IF"- "THEN" type Formula based on Null value Jay Excel Worksheet Functions 8 November 17th 05 09:05 AM


All times are GMT +1. The time now is 12:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"