Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to deal with "$0 - $500" in one cell
A spreadsheet has multiple cells filled with the ranges like "$0 -
$500" or "$501 - $1000" or "Jan 2006 - March 2006". Is there a way to make judgement programmatically (either using function or procedure) to determine if a value falls in the range? Thanks in advance. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to deal with "$0 - $500" in one cell
v = application.Split(cell.Value,"-")
lb = clng(trim(v(0)) ub = clng(trim(v(1)) if v = lb and v <= ub then ' it's between -- Regards, Tom Ogilvy "Who I Am" wrote: A spreadsheet has multiple cells filled with the ranges like "$0 - $500" or "$501 - $1000" or "Jan 2006 - March 2006". Is there a way to make judgement programmatically (either using function or procedure) to determine if a value falls in the range? Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
How do I deal with a "Too many different cell formats". | Excel Discussion (Misc queries) | |||
How do I deal with a "Too many different cell formats". | Excel Worksheet Functions | |||
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! | Excel Discussion (Misc queries) | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) |