Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using Office 2003 on Windows XP.
In code, I need to work out which variable contains the middle value, in this example, it would be 85. I would guess this needs to be done by comparing <= and = and sometimes there could be a two or three way tie. In a tie, it doesn't matter which one is in the middle...but the code needs to identify which variable has been selected. So in the example, I would need to know that dVar1 is in the middle. Dim dVar1 as Double Dim dVar2 as Double Dim dVar3 as Double dVar1 = Abs(-85) dVar2 = Abs(95) dVar3 = Abs(25) If dVar1 = dVar2 then ... (what next? I can't crack it!) Do I have to try every combination to work this out? I can't seem to work out the code to ensure that it always works. Your help is appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Separate first name, middle name and last name | Excel Worksheet Functions | |||
Round up-down-or middle | Excel Discussion (Misc queries) | |||
how to get the middle name | Excel Worksheet Functions | |||
how to get the middle name | Excel Worksheet Functions | |||
Remove middle initial from "first name middle initial" | Excel Discussion (Misc queries) |