+ Reply to Thread
Results 1 to 8 of 8

Checking if point is above or under the function

  1. #1
    Registered User
    Join Date
    05-11-2021
    Location
    Gdańsk, Poland
    MS-Off Ver
    2016
    Posts
    7

    Checking if point is above or under the function

    Hi all,
    I have several functions which are similar but separated from each other on Y axis. I must check between which functions the point is located to determine how many hinges I must use for a door. Can you tell me how to do it?
    Thanks

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,732

    Re: Checking if point is above or under the function

    not sure what you mean
    Have a read of the yellow banner and post a sample spreadsheet - with some expected results and why
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    05-11-2021
    Location
    Gdańsk, Poland
    MS-Off Ver
    2016
    Posts
    7

    Re: Checking if point is above or under the function

    In the attachment you can find graph where these functions are. The Y axis is weight and X axis is width of the sash. Based on this two values I want excel to determine between which of the functions on graph is the point located and by that how many hinges I need.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Checking if point is above or under the function

    Which 'point' are you talking about?

    A worked example would help considerably. Tell us what you want to see reported and how you arrive at that answer.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    05-11-2021
    Location
    Gdańsk, Poland
    MS-Off Ver
    2016
    Posts
    7

    Re: Checking if point is above or under the function

    I'm talking about point with coordinates (X,Y) (I've explained what X and Y axis are eariler).

    So I have specific weight and width of the sash. Given this figures you get coordinates of point A for example. This point should be located somewhere on the graph. Each area between two functions represent specific number of required hinges. I want excel to calculate number of needed hinges. In the attachment you can find spreadsheet where I tried to explain this as specific as I can - I am really green in excel, sorry.
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Checking if point is above or under the function

    If I understand what you are trying to do, here's how I would do it:

    1) Chart trendlines are nice for quick visualizations, but they are not referenceable in spreadsheet formulas, so they are not very useful when you want to actually use them. All of the chart's trendlines are linear functions, so I prefer to use the LINEST() function to perform the regression directly in the spreadsheet. For example, a power trendline is ln(y)=ln(b)+x*ln(m) which is a simple linear function, so I would perform these regressions in the spreadsheet as =LINEST(LN(B3:B12),LN(A3:A12)) in Arkusz1. Quadratics are similar -- see the LINEST() help file: https://support.microsoft.com/en-us/...rs=en-us&ad=us If you are content to hand enter the coefficients from the chart to the spreadsheet, this step is not necessary.
    2) In Arkusz2, I can now build a lookup table that will relate mass/weight (Assume this is E16) to number of hinges based on width (assume this is B3).
    2a) In J5:J9, enter the number of hinges: 5,4,3,2,1
    2b) In I5:I9, enter the appropriate formula for mass/weight for the corresponding number of hinges. I9, for example, would be =36759*$B$3^-0.98868 (or references to the cells containing the parameters). Repeat for I5:I8.
    3) At this point, a simple lookup function will give the number of hinges INDEX($J$5:$J$9,MATCH(E16,$I$5:$I$9,-1)). Note the approximate match descending order option for the 3rd argument of the MATCH() function.

    If I understand what you are trying to do, that's how I'd do it.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Checking if point is above or under the function

    I think this can be done with some simple MATCH() INDEX() functions and some helper Rows which reference the XY values in the main table.

    See attached
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-11-2021
    Location
    Gdańsk, Poland
    MS-Off Ver
    2016
    Posts
    7

    Re: Checking if point is above or under the function

    Thank you very much guys, I didn't think this is so simple

+ 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. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  2. Checking in Excel Chart to Share point using VBA
    By cpdenardis in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2016, 08:29 PM
  3. My function is checking based on Work Sheet Name, I need to change this function
    By Kandavalli.Kiran in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2015, 01:36 PM
  4. if function with error checking
    By smalltime in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-02-2010, 01:58 AM
  5. Checking if a data point exists on a chart
    By CFD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-12-2008, 09:08 AM
  6. checking function
    By _Luca_ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2007, 09:30 AM
  7. Checking two cells for zero with =IF function
    By AnthonyB in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-29-2007, 10:15 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