+ Reply to Thread
Results 1 to 10 of 10

Creating a function that selects a value from a range of cells to put forward into an equ.

  1. #1
    Registered User
    Join Date
    07-26-2017
    Location
    Wolverhampton
    MS-Off Ver
    2013
    Posts
    4

    Creating a function that selects a value from a range of cells to put forward into an equ.

    Hello,

    Please see the attached word doc. to this post for a screenshot explaining my problem. I would appreciate any help. Thanks!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Creating a function that selects a value from a range of cells to put forward into an

    You know how to attach word file, so attach excel file , not a picture in word doc.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,780

    Re: Creating a function that selects a value from a range of cells to put forward into an

    Also, please explain the nature of the problem within the thread itself so that members do not have to open attachments.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-26-2017
    Location
    Wolverhampton
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating a function that selects a value from a range of cells to put forward into an

    I have a range of cells whereby I wish to select the only positive value (all other cells within this range will always equal zero) to automatically put forward for use into an equation. Can I do this with the IF function? This is difficult to explain as I have very little Excel knowledge.


    Please find excel spreadsheet attached; this will demonstrate more clearly what I'm looking to do. Refer to Sheet 2 where you will find 'XLT' and the range of cells aforementioned.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Creating a function that selects a value from a range of cells to put forward into an

    no excel file attached

  6. #6
    Registered User
    Join Date
    07-26-2017
    Location
    Wolverhampton
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating a function that selects a value from a range of cells to put forward into an

    File attached here.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Creating a function that selects a value from a range of cells to put forward into an

    could you tell me when this formula will be negative?
    =(2.8/86.8)*SQRT((Sheet1!K21*Sheet1!K20)/(1.5*Sheet1!K22^2))
    btw. dimensions cannot be negative. In drastic case it can be 0

    and where is the result formula which uses the indicated range ?
    Last edited by sandy666; 07-26-2017 at 06:03 AM.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Creating a function that selects a value from a range of cells to put forward into an

    Hi,

    To return the only non-zero value from the range D43:H51, you might use MAX(D43:H51)
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  9. #9
    Registered User
    Join Date
    07-26-2017
    Location
    Wolverhampton
    MS-Off Ver
    2013
    Posts
    4

    Re: Creating a function that selects a value from a range of cells to put forward into an

    Quote Originally Posted by sandy666 View Post
    could you tell me when this formula will be negative?
    =(2.8/86.8)*SQRT((Sheet1!K21*Sheet1!K20)/(1.5*Sheet1!K22^2))
    btw. dimensions cannot be negative. In drastic case it can be 0

    and where is the result formula which uses the indicated range ?
    Thanks for the replies.

    I've only just typed out that equation / result formula as I didn't know how to incorporate the indicated range. However, after using @xlnitwit's input it has worked.

    That formula cannot give a negative answer (i.e. the formula gives a shear / bending resistance which in this case cannot be negative). Dimensions cannot be negative? Thanks for the heads up. Fortunately I don't think I will have any of those.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Creating a function that selects a value from a range of cells to put forward into an

    for the future: The number 0 is the smallest non-negative integer so better to use in description: positive non-zero values
    Last edited by sandy666; 07-26-2017 at 07:41 AM.

+ 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] Creating a Dynamic Chart that shows from Today for 100 days forward, changing daily
    By Robbie8 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-26-2016, 08:13 PM
  2. If user selects a range using two comboboxes, apply value across range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-24-2016, 02:08 PM
  3. [SOLVED] Creating a chart that selects a range of data that is dependent on a value selected
    By FraserWM in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-28-2015, 11:58 AM
  4. Creating a macro which selects and plots data across multiple worksheets
    By samthony in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2014, 06:26 AM
  5. [SOLVED] Need to sort range of values so it only selects one date to the range
    By sparksy1981 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2013, 07:47 PM
  6. Code selects entire rows upto one range and same code selects only columns for other.
    By sriharigk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 05:19 AM
  7. selects all cells within that range
    By jsrinivasu in forum Excel General
    Replies: 5
    Last Post: 09-24-2007, 08:06 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