Quote:
Originally Posted by zomg
Code:
=SUM(INDIRECT("A"&ROW()&":C"&ROW()))
Although i'd be interested to hear why you need to do it like that?
I found another method. There is an option called R1C1 that you can turn on in tools and it replaces the A B C across the top with 1 2 3's
Code:
=
IF(RC[-2] = "Hydro1" ,"HWE",
IF(RC[-2] = "Carpentry" ,"SubCont",
IF(RC[-2] = "Hambrg" ,"PayRoll",
""
)))
The problem with this method is it changes the way all formulas are displayed and is a little bit harder to read.
Using the Indirect method I get
Code:
=
IF(INDIRECT("B"&ROW()) = "Hydro1" ,"HWE",
IF(INDIRECT("B"&ROW()) = "Carpentry" ,"SubCont",
IF(INDIRECT("B"&ROW()) = "Hambrg" ,"PayRoll",
""
)))
Reason:
I am trying to setup a spreadsheet that will automatically "categorize" a cheque when the name is typed in. If it doesn't auto populate - ie. its a rare cheque or someone new - you'll have to type it in manually and overwrite the formula.
I want to make this formula easy to use by being a copy and paste formula where you dont have the luxery to use the pull down fill method.
Question:
Is there anyway to take this one step further and say we put this formula in cell A1 on sheet 'Formula'. So that it can be called at anytime by using =formula!$a$1 ??
Last edited by stanek; 12-29-2011 at 12:28 PM.
Reason: Thank you Btw