Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
fastballfreddy
 
Posts: n/a
Default easy way to change a formula


I have 7 people in cells F2 to F8. Here's the formula:

=IF(ROWS(C$2:C2)<=$B$2,INDEX(*$F$2:$F$8*,SMALL(IF( COUNTIF(INDIRECT("'"&*$F$2:$F$8*&"'!B2"),""&$A$2) ,IF(COUNTIF(INDIRECT("'"&*$F$2:$F$8*&"'!B2"),"<="& $A$3),ROW(*$F$2:$F$8*)-ROW($F$2)+1)),ROWS($C$2:C2))),"")

The range: *$F$2:$F$8* -- is in the formula 4 times and I am using this
formula 365 times for a full year. What if I include 1,2,3 more people,
the range would then need to be extended to F9,F10,F11.

Is there an easy way to change each formula, or do I have to go through
365 formulas and change each one?

Thanks for the help. I really do appreciate it.


--
fastballfreddy
------------------------------------------------------------------------
fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
View this thread: http://www.excelforum.com/showthread...hreadid=538328

  #2   Report Post  
Posted to microsoft.public.excel.misc
Niek Otten
 
Posts: n/a
Default easy way to change a formula

Look in HELP for the INDIRECT() function.
Even better: use a Defined Name (InsertNameDefine)

--
Kind regards,

Niek Otten


"fastballfreddy" <fastballfreddy.277yxm_1146639302.3065@excelforu m-nospam.com wrote in message
news:fastballfreddy.277yxm_1146639302.3065@excelfo rum-nospam.com...
|
| I have 7 people in cells F2 to F8. Here's the formula:
|
|
=IF(ROWS(C$2:C2)<=$B$2,INDEX(*$F$2:$F$8*,SMALL(IF( COUNTIF(INDIRECT("'"&*$F$2:$F$8*&"'!B2"),""&$A$2) ,IF(COUNTIF(INDIRECT("'"&*$F$2:$F$8*&"'!B2"),"<="& $A$3),ROW(*$F$2:$F$8*)-ROW($F$2)+1)),ROWS($C$2:C2))),"")
|
| The range: *$F$2:$F$8* -- is in the formula 4 times and I am using this
| formula 365 times for a full year. What if I include 1,2,3 more people,
| the range would then need to be extended to F9,F10,F11.
|
| Is there an easy way to change each formula, or do I have to go through
| 365 formulas and change each one?
|
| Thanks for the help. I really do appreciate it.
|
|
| --
| fastballfreddy
| ------------------------------------------------------------------------
| fastballfreddy's Profile: http://www.excelforum.com/member.php...o&userid=33986
| View this thread: http://www.excelforum.com/showthread...hreadid=538328
|


  #3   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default easy way to change a formula


select the range where formula resides

press Ctrl+F now press tab Replace
in Find What enter your current range
in Replace with enter new range
press Replace All.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=538328

  #4   Report Post  
Posted to microsoft.public.excel.misc
starguy
 
Posts: n/a
Default easy way to change a formula


select the range where formula resides

press Ctrl+H
in Find What enter your current range
in Replace with enter new range
press Replace All.


--
starguy
------------------------------------------------------------------------
starguy's Profile: http://www.excelforum.com/member.php...o&userid=32434
View this thread: http://www.excelforum.com/showthread...hreadid=538328

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
how do i enter a formula in excel that will change a cell value Jace35 Excel Worksheet Functions 4 April 21st 06 03:44 PM
formula help to change row colour automatically by some conditions Aarif Excel Worksheet Functions 6 March 17th 06 03:51 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Cannot change a formula Richard F Excel Discussion (Misc queries) 1 January 18th 05 01:57 AM


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