+ Reply to Thread
Results 1 to 7 of 7

Problem with the right function Choosing dimension

  1. #1
    Registered User
    Join Date
    03-25-2018
    Location
    Norway
    MS-Off Ver
    2008
    Posts
    3

    Problem with the right function Choosing dimension

    Hi, I dont undersand how I am going to do this. Which function shall I use and so forth.

    I want the cell to check for the right dimension so that V(m/s) dont go above 0,2 m/s. And if possible choose the dimension closest to 0,2<.

    I've started with IF(E7;0,2< what is missing? or how do I need to think?

    Anyone got a clue?

    cheers

    //Simon
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Problem with the right function Choosing dimension

    So, to find the closest value that does not go over 0.2 for V(m/s) use the following formula:

    =MAX(IF($S$7:$S$17<0.2,$S$7:$S$17)) - Array entered: Press Ctrl+Shift+Enter simultaneously instead of regular Enter.

    Now, to find the m2, your logic is not clear. if you want the smallest value in the range use =MIN($R$7:$R$12)
    To find the one than matches the closest V(m/s) value to 0.2 use =INDEX($R$7:$R$13,MATCH($A$13,$S$7:$S$13,0))

    if there is other logic, please explain

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Problem with the right function Choosing dimension

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Although I suspect your version of Excel doesn't support MAXIFS - so try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    03-25-2018
    Location
    Norway
    MS-Off Ver
    2008
    Posts
    3

    Re: Problem with the right function Choosing dimension

    Okey, the thing is this, in order to find out the speed V (m/s) of the water I have to have "flöde" (volume) / m2 (area).

    So what im looking for is =C7*0,36/R8<0,2 and then for it to check if that answear is bellow 0,2 m/s and if that m2 (D7) is closest to that value. ( So I dont get to big pipes, becasue it costs more).

    I want a kinda automtic solution that looks at the speed and says you need this size in cell D7.

    maby im confusing you more than before...

  5. #5
    Registered User
    Join Date
    03-25-2018
    Location
    Norway
    MS-Off Ver
    2008
    Posts
    3

    Re: Problem with the right function Choosing dimension

    .... so basiclt i want E7 to find value bellow 0,2 and D7 to tell me which dimension that is.

  6. #6
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Problem with the right function Choosing dimension

    Use this for E7:

    =MAX(IF($S$7:$S$17<0.2,$S$7:$S$17)) - Array entered: Press Ctrl+Shift+Enter simultaneously instead of regular Enter.

    And for D7 the value should be 15 if in E7 you have 0.16099?
    IF not, what should be the desired result?

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

    Re: Problem with the right function Choosing dimension

    This looks to me like a (binary) lookup kind of problem. It is not clear to me exactly what you want. If you are unfamiliar with Excel's lookup functions, I might suggest that you start with https://support.office.com/en-us/art...9-533f4a37673a Note the behavior described by the 3rd argument of the MATCH() function. Unfortunately, it seems that almost all lookup examples on the internet are for "exact match" lookups (3rd argument =0) and none illustrate the binary search behavior.

    With your data, V is sorted in descending order, so we could first choose -1 for the 3rd argument =MATCH(0.2,$S$7:$S$47,-1) would return 1, because 0.2 is between 0.24 and 0.16. When V is sorted in descending order and lookup type is -1, MATCH() will return the row number for the value just larger than lookup value. On the other hand, if V is sorted in ascending order and lookup type is 1, then MATCH(0.2,$S$7:$S$47,1) will return the row number corresponding to the 0.16 value. Choose the scenario that best matches what you are trying to do.

    Once you have the row number from the MATCH() function, then INDEX() functions can be used to return values from the other columns.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

+ 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. The specified dimension is not valid for the current chart type - problem!
    By Matcham in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2016, 07:08 AM
  2. Function to check website image dimension in excel
    By faizzsheikh in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-22-2013, 10:24 AM
  3. [SOLVED] VBA dimension/naming problem
    By Mojave in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-07-2012, 07:20 PM
  4. passing a dimension of an array to a function
    By MrReds in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2012, 07:06 PM
  5. Passing an entire dimension of an array to a function.
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-09-2009, 11:51 AM
  6. 3 dimension lookup problem
    By barkiny in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 11:05 AM
  7. [SOLVED] Using the sum function in a 3 dimension environment
    By Paul Hargreaves in forum Excel General
    Replies: 2
    Last Post: 02-22-2005, 09:06 PM

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