Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Need formula to STAY

I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Need formula to STAY

$c$5:$n$5

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Need formula to STAY

Try this:

=AVERAGE(INDIRECT("$C$5:$N$5"))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Need formula to STAY

Since you are adding/deleting columns,
try this:

=AVERAGE(INDEX(5:5,3):INDEX(5:5,14))

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Need formula to STAY

And of course ... again ... don't need the absolutes:

=AVERAGE(INDIRECT("C5:N5"))

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"RagDyeR" wrote in message
...
Try this:

=AVERAGE(INDIRECT("$C$5:$N$5"))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Need formula to STAY

This formula did not work for me. When I added a new column it still changed
it to the D5:O5. But I did get it from another user. Thanks for the help.

"Don Guillett" wrote:

$c$5:$n$5

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Need formula to STAY

This worked!! Thank you so much for your help.

"RagDyeR" wrote:

And of course ... again ... don't need the absolutes:

=AVERAGE(INDIRECT("C5:N5"))

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"RagDyeR" wrote in message
...
Try this:

=AVERAGE(INDIRECT("$C$5:$N$5"))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Need formula to STAY

You're welcome, and thanks for the feed-back.
--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"Needs Help" wrote in message
...
This worked!! Thank you so much for your help.

"RagDyeR" wrote:

And of course ... again ... don't need the absolutes:

=AVERAGE(INDIRECT("C5:N5"))

--

Regards,

RD
-----------------------------------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
-----------------------------------------------------------------------------------------------

"RagDyeR" wrote in message
...
Try this:

=AVERAGE(INDIRECT("$C$5:$N$5"))

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Needs Help" wrote in message
...
I have a formula in P5 that states =Average(C5:N5).

Monthly I need to add a new column C and delete column O.

How do I get the formula to stay C5:N5? It changes to D5:O5.






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
Formula and values stay with row/cell after sort Margo Excel Worksheet Functions 0 November 5th 07 02:37 PM
how to get a formula to stay as 0 anier614 Excel Discussion (Misc queries) 4 October 13th 07 06:21 PM
formula to stay fixed on two columns as you add more columns usingexcel Excel Discussion (Misc queries) 1 August 3rd 06 01:25 AM
How do I get my formula to stay the same BertiesMum New Users to Excel 4 November 20th 05 04:00 PM
Autofit does not stay on. Karen Excel Discussion (Misc queries) 0 October 26th 05 05:02 PM


All times are GMT +1. The time now is 01:44 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"