Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Based on the cell its in

If I have a formula in a cell can base its content off that cell. What I mean
is say in E2 i have the following equation =IF(SUM(F6:L6)0,SUM(F6:L6),""). I
want to fomat it so it would be something like0=IF(SUM((F[CELL
LOCATION+4]:L[CELL LOCATION+4])0,SUM(F[CELL LOCATION+4]:L[CELL
LOCATION+4]),""). I know this is a correction function, but I just want to
explain what I mean
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Based on the cell its in

In the previous most I meant to say I know this is NOT a correct function

"JBoyer" wrote:

If I have a formula in a cell can base its content off that cell. What I mean
is say in E2 i have the following equation =IF(SUM(F6:L6)0,SUM(F6:L6),""). I
want to fomat it so it would be something like0=IF(SUM((F[CELL
LOCATION+4]:L[CELL LOCATION+4])0,SUM(F[CELL LOCATION+4]:L[CELL
LOCATION+4]),""). I know this is a correction function, but I just want to
explain what I mean

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Based on the cell its in

Hi JBoyer,

The Row() function returns the row number the formula is in; the Indirect
function allows you to calculate an address.

=IF(SUM(INDIRECT("F"&ROW()+4&":L"&ROW()+4))0,SUM( INDIRECT("F"&ROW()+4&":L"&ROW()+4)),"")

Hope this helps.
Peggy

"JBoyer" wrote:

If I have a formula in a cell can base its content off that cell. What I mean
is say in E2 i have the following equation =IF(SUM(F6:L6)0,SUM(F6:L6),""). I
want to fomat it so it would be something like0=IF(SUM((F[CELL
LOCATION+4]:L[CELL LOCATION+4])0,SUM(F[CELL LOCATION+4]:L[CELL
LOCATION+4]),""). I know this is a correction function, but I just want to
explain what I mean

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 72
Default Formula Based on the cell its in

Thanks that is exactly what I was looking for.

"pshepard" wrote:

Hi JBoyer,

The Row() function returns the row number the formula is in; the Indirect
function allows you to calculate an address.

=IF(SUM(INDIRECT("F"&ROW()+4&":L"&ROW()+4))0,SUM( INDIRECT("F"&ROW()+4&":L"&ROW()+4)),"")

Hope this helps.
Peggy

"JBoyer" wrote:

If I have a formula in a cell can base its content off that cell. What I mean
is say in E2 i have the following equation =IF(SUM(F6:L6)0,SUM(F6:L6),""). I
want to fomat it so it would be something like0=IF(SUM((F[CELL
LOCATION+4]:L[CELL LOCATION+4])0,SUM(F[CELL LOCATION+4]:L[CELL
LOCATION+4]),""). I know this is a correction function, but I just want to
explain what I mean

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
If formula based on cell formats veggies27 Excel Worksheet Functions 1 March 11th 08 02:00 PM
Formula to sum columns based on # in Cell A1 Karin Excel Discussion (Misc queries) 8 July 24th 07 06:18 PM
need help creating formula based on cell value Brad Excel Discussion (Misc queries) 3 April 1st 05 07:51 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


All times are GMT +1. The time now is 03:40 AM.

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"