Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
A Stevens
 
Posts: n/a
Default Reference Cell if Found in a IF function

I'm trying to setup an IF function so that it searches for a value, then if
Value is found (TRUE), to offset from the cell within which it was found.
Ex:
With the formula written into Sheet 2, B, I want it to search column A of
Sheet 1 for a 22, then if found offset from where it was found up one cell
and report the station name.

Sheet 1 Sheet 2
A A B
Station Name 22 Station Name(variable)
22 (variable)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
A Stevens
 
Posts: n/a
Default Reference Cell if Found in a IF function

Formatting came out funny in my example. Hope the text is clear enough...
if more is needed let me know and I'll try to explain further.

"A Stevens" wrote:

I'm trying to setup an IF function so that it searches for a value, then if
Value is found (TRUE), to offset from the cell within which it was found.
Ex:
With the formula written into Sheet 2, B, I want it to search column A of
Sheet 1 for a 22, then if found offset from where it was found up one cell
and report the station name.

Sheet 1 Sheet 2
A A B
Station Name 22 Station Name(variable)
22 (variable)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ragdyer
 
Posts: n/a
Default Reference Cell if Found in a IF function

With your datalist on Sheet1 in Column A,

Try this on Sheet2, in B1, with your value in A1:

=INDEX(Sheet1!A1:A100,MATCH(A1,Sheet1!A1:A100,0)-1)
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"A Stevens" wrote in message
...
Formatting came out funny in my example. Hope the text is clear

enough...
if more is needed let me know and I'll try to explain further.

"A Stevens" wrote:

I'm trying to setup an IF function so that it searches for a value, then

if
Value is found (TRUE), to offset from the cell within which it was

found.
Ex:
With the formula written into Sheet 2, B, I want it to search column A

of
Sheet 1 for a 22, then if found offset from where it was found up one

cell
and report the station name.

Sheet 1 Sheet 2
A A B
Station Name 22 Station Name(variable)
22 (variable)



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
Can you have fixed cell reference when dragging/copying formulae? ducksfolly Excel Discussion (Misc queries) 4 December 20th 05 11:19 AM
Getting contents of a cell when cell reference is in the sheet A Nelson Excel Discussion (Misc queries) 3 October 5th 05 06:46 PM
copying the function contained within a cell to anouther cell. DMB Excel Worksheet Functions 2 September 1st 05 05:49 PM
Input cell reference is not valid (One Variable Data Table) Dottore Excel Worksheet Functions 9 September 1st 05 03:05 PM
how do I format a cell reference to move as source changes KGray Excel Worksheet Functions 1 August 13th 05 12:41 AM


All times are GMT +1. The time now is 11:06 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"