+ Reply to Thread
Results 1 to 7 of 7

Array around Slope and Intercept Formula

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Array around Slope and Intercept Formula

    Hello all......I'm hoping someone can help me with an array formula please. I'm trying to put in this formula:

    =SLOPE($C$2:$C$7602,$B$2:$B$7602)*B2-ABS(INTERCEPT($C$2:$C$7602,$B$2:$B$7602))

    but with an array around it. I've attached an example of my file and what I'm after is an IF statement around it to say that I want the =SLOPE etc formula to calculate IF($A$2:$A$28=A2).

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Array around Slope and Intercept Formula

    Instead of giving your formula and asking us to do change something please describe what you are trying to achieve by showing the expected output.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    11-17-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: Array around Slope and Intercept Formula

    Sorry....I've added in the output in the new attachment that I'd like to see, but instead of putting in the absolute cell references within the formula, I really want to use an array around the whole of the reference.

    Thank you very much.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Array around Slope and Intercept Formula

    Thanks for showing the clear picture of your requirement.

    In D2 Cell - Array Formula - Requires CTRL+SHIFT+ENTER

    =SLOPE(IF($A$2:$A$28=A2,$C$2:$C$28),IF($A$2:$A$28=A2,$B$2:$B$28))*B2-ABS(INTERCEPT(IF($A$2:$A$28=A2,$C$2:$C$28),IF($A$2:$A$28=A2,$B$2:$B$28)))

    Drag it down…

    Array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

  5. #5
    Registered User
    Join Date
    11-17-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: Array around Slope and Intercept Formula

    That's brilliant, thank you so much for your help.

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Array around Slope and Intercept Formula

    Glad it helps you and thanks for the feedback and rep

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    11-17-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2016
    Posts
    18

    Re: Array around Slope and Intercept Formula

    Thank you, it was a great help. I'm currently logged in at home however, and don't have the option to 'solve' in the Thread Tools, I assume, until I log back in from work tomorrow. Immediately I get into work in the morning though, I'll do it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Graphing Using Only Slope and Y-Intercept
    By rylock in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-12-2013, 11:38 AM
  2. Slope and Intercept using Macro
    By habeebshafi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2012, 12:56 PM
  3. [SOLVED] Slope/Intercept for Groups
    By jjmilla in forum Excel General
    Replies: 1
    Last Post: 03-23-2012, 02:54 PM
  4. Use criteria to calculate slope and intercept?
    By JoshuaSQ in forum Excel General
    Replies: 3
    Last Post: 12-13-2006, 03:53 PM
  5. SLOPE & INTERCEPT
    By banavas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-23-2005, 04:42 AM

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