Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 ) |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It looks like I'm dead - no go. The new question is then: is there a
sort configuration that say empties last? (nulls last) Thank you for any suggestions. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Cate
You could possibly add an additional column, with an IF formula that equals the intended sort column, unless the sort column is blank or null or otherwise problematic, in which case the formula returns ZZZ or something that will sort as you wish; then sort by the new column. Ken On Sunday, November 25, 2012 11:49:52 AM UTC-5, cate wrote: It looks like I'm dead - no go. The new question is then: is there a sort configuration that say empties last? (nulls last) Thank you for any suggestions. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Nov 26, 3:32*pm, wrote:
Cate You could possibly add an additional column, with an IF formula that equals the intended sort column, unless the sort column is blank or null or otherwise problematic, in which case the formula returns ZZZ or something that will sort as you wish; then sort by the new column. Ken On Sunday, November 25, 2012 11:49:52 AM UTC-5, cate wrote: It looks like I'm dead - no go. *The new question is then: is there a sort configuration that say empties last? (nulls last) Thank you for any suggestions. Good idea. Thank you Ken. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sorting a text strings but omitting preceding "A" or "The" | Excel Worksheet Functions | |||
sheet protected but cells "cleared of all" become locked | Excel Discussion (Misc queries) | |||
Null, "null", vbNull, vbNullString, vbEmpty | Excel Programming | |||
cells formatted to tick when text value "Y" if or null if "N" | Excel Discussion (Misc queries) | |||
"IF"- "THEN" type Formula based on Null value | Excel Worksheet Functions |