+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Repeating Formula

  1. #1
    Registered User
    Join Date
    02-04-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    24

    Question Repeating Formula

    Hi Again,

    I am using this formula and it works but i need it follow the same pattern you can see below.

    Is there an easier way to follow the same pattern without having the formula this long?

    =IF(AND(C6>=J12,C6<J13),K12*C7,IF(AND(C6>=J13,C6<J14),K13*C7,IF(AND(C6>=J14,C6<J15),K14*C7,IF(AND(C6>=J15,C6<J16),K15*C7,IF(AND(C6>=J16,C6<J17),K16*C7,IF(AND(C6>=J16,C6<J17),K17*C7,IF(AND(C6>=J17,C6<J18),K18*C7,
    )))))))

    i still have many cells to cover using the same formula.


    Thanks.

    Mick
    Last edited by Mick2011; 02-05-2011 at 04:20 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Repeating Formula

    Do you mean this?

    =C7*VLOOKUP(C6, $J$14:$K$18, 2)

    Also, your formula has an error:


    =IF(AND(C6>=J12,C6<J13),K12*C7,IF(AND(C6>=J13,C6<J14),K13*C7,IF(AND(C6>=J14,C6<J15),K14*C7,IF(AND(C6 >=J15,C6<J16),K15*C7,IF(AND(C6>=J16,C6<J17),K16*C7,IF(AND(C6>=J16,C6<J17),K17*C7,IF(AND(C6>=J17,C6<J 18),K18*C7,
    )))))))
    Last edited by zbor; 02-05-2011 at 04:10 AM.
    Never use Merged Cells in Excel

  3. #3
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Repeating Formula

    hi Mick2011,
    When you select the cell with the formula it will highligh with boarder.
    in the bottom right coener will be a small square.
    click on hold and drag the forula down
    Note if you dont want some of the cell references to change, first put a $ in from of the row or column value
    eg =IF(AND(C6>=J$12,C6<$J$13),$K$12*C7,IF.......

    c6 will change $j$13 wont
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  4. #4
    Registered User
    Join Date
    02-04-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Repeating Formula

    WOW. Yes thats what i needed.

    Thanks so much.

    I feel really dumb, but i am just learning excel.

    Thanks.

    Mick

  5. #5
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Repeating Formula

    all got to start some where

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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