+ Reply to Thread
Results 1 to 4 of 4

easy way to change a formula

  1. #1
    Registered User
    Join Date
    04-30-2006
    Posts
    62

    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.

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    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.

  3. #3
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    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.

  4. #4
    Niek Otten
    Guest

    Re: easy way to change a formula

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

    --
    Kind regards,

    Niek Otten


    "fastballfreddy" <[email protected]> wrote in message
    news:[email protected]...
    |
    | 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
    |



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1