ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Go To Cell Display (https://www.excelbanter.com/excel-discussion-misc-queries/46898-go-cell-display.html)

Stan

Go To Cell Display
 
Within this function
=IF(VLOOKUP(MIN($C$6:$C$28),$H$5:$J$16,3)<"0","Av ailable","Not Available") I
want to the place the "Available" or "Unavailable" in column 'B' next to the
corresponding row that matches the findings in column 'C'.

In other words how do you write a function that says 'Go To Cell xxx and
display xxx' based upon the results of a function?

Any thoughts?

Bill Martin

Stan wrote:
Within this function
=IF(VLOOKUP(MIN($C$6:$C$28),$H$5:$J$16,3)<"0","Av ailable","Not Available") I
want to the place the "Available" or "Unavailable" in column 'B' next to the
corresponding row that matches the findings in column 'C'.

In other words how do you write a function that says 'Go To Cell xxx and
display xxx' based upon the results of a function?

Any thoughts?


-------------------

A function can only write to the cell from which it's called. The simplest
answer is to put your IF function in that column B cell where you want the
answer displayed.

If there's some esoteric reason that you can't do that, then you need to write a
macro SUB program to do it, rather than a function. Macros can reach out and
touch any cell.

Good luck...

Bill


All times are GMT +1. The time now is 03:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com