Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default A "IF" result that will not result in a selected field when using

When using the IF function, is there a result, either "true" or "false that
will not trigger the END key to stop at that specific cell. For example, if
I use =IF(A1B2, 2," "), and the statement is false, the cursor will stop on
that cell when using the END key because there is a space (" ") in that cell.
I have tried using =IF(A1B2, 2,"") and =IF(A1B2,2), but everything
produces a result that will stop the cursor on that cell when using the END
key.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default A "IF" result that will not result in a selected field when using

The End key's function is not based on the value of a cell. It is based on
whether the cell is empty or not.
A cell with the formula below, produces an empty value. But the cell,
itself, is not empty and using End will stop on this cell if it is in the
path of the direction you are going.
=""

I don't know of a way to change that though standard excel keystrokes
without using some code.

You could use the code below and then set each macro to fuction with a
specific key combination (ex. - to move: right, Ctrl + R...Left, Ctrl +
L...Up, Ctrl + U...Down, Ctrl + D).


Sub endRight()

ActiveCell.End(xlToRight).Select
Do While ActiveCell.Value = ""
If ActiveCell.Column = 256 Then End
ActiveCell.End(xlToRight).Select
Loop

End Sub


Sub endLeft()

ActiveCell.End(xlToLeft).Select
Do While ActiveCell.Value = ""
If ActiveCell.Column = 1 Then End
ActiveCell.End(xlToLeft).Select
Loop

End Sub

Sub endUp()

ActiveCell.End(xlUp).Select
Do While ActiveCell.Value = ""
If ActiveCell.Row = 1 Then End
ActiveCell.End(xlUp).Select
Loop

End Sub
Sub endDown()

ActiveCell.End(xlDown).Select
Do While ActiveCell.Value = ""
If ActiveCell.Row = 65536 Then End
ActiveCell.End(xlDown).Select
Loop

End Sub



"A Long" wrote in message
...
When using the IF function, is there a result, either "true" or "false
that
will not trigger the END key to stop at that specific cell. For example,
if
I use =IF(A1B2, 2," "), and the statement is false, the cursor will stop
on
that cell when using the END key because there is a space (" ") in that
cell.
I have tried using =IF(A1B2, 2,"") and =IF(A1B2,2), but everything
produces a result that will stop the cursor on that cell when using the
END
key.



Reply
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
How create blank cell value as the result of Excel "IF" function? Pocket Protector as a Fashion Statement Excel Worksheet Functions 1 March 11th 07 07:44 PM
How can I find cell contains the result of "maximum" formula De Excel Discussion (Misc queries) 6 October 26th 06 08:46 PM
Why MS Excel produce diffrent result for the function "Quartile" Nadeem Shafique Butt Excel Worksheet Functions 2 October 11th 06 03:08 PM
how do i enable a drop down list depending on result of "if" funct Varun Excel Worksheet Functions 3 August 8th 06 04:44 PM
How to "blank" pivot table calculated fields if result = 0 Joe Excel Worksheet Functions 3 March 14th 06 05:43 PM


All times are GMT +1. The time now is 07:10 AM.

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"