Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 245
Default Getting a formula to lookup its own row

=IF(INDIRECT("F"&ROW())=1,INDIRECT("G"&ROW()),0)


Breaking this down:

= Row() returns the current row
= "$F" & ROW() concatenates $F and the value returned by the ROW() function
(E.G. if row 6 the value returned is $F6)
=INDIRECT("$F"&ROW()) tells Excel to return the value from the address
specified in the INDIRECT parameter.


--
Steve

"Angela" wrote in message
...
I am trying to get a formula that people can copy from a formula sheet
into a
spreadsheet that will automatically look up the row that it is sitting in.
The hard part is this is part of a conditional formula and the regular =
ROW() does not seem to be working. What I want to do is:

=IF($F(current row)=1,G(current row),0)

In other words, if a trigger in a cell is set at "1", make this cell the
total in the G column of the current row, or if it isn't "1" make it 0.

It's doing my head in!
Any ideas? :(


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
Using lookup formula [email protected] Excel Worksheet Functions 2 August 6th 08 04:00 PM
LOOKUP formula Snake_Plisken[_2_] Excel Worksheet Functions 2 August 5th 07 12:01 AM
LOOKUP Formula Kimo Excel Worksheet Functions 15 July 26th 07 04:09 AM
Lookup Formula Help - PLEASE! VickyC Excel Worksheet Functions 4 February 28th 06 12:09 PM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM


All times are GMT +1. The time now is 04:46 PM.

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"