+ Reply to Thread
Results 1 to 14 of 14

Min of the numbers assigned for all the values found in a range

  1. #1
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Min of the numbers assigned for all the values found in a range

    Hello,

    I'm preparing some document and half-way through it.

    I need some help in calculating something like - Min (Numbers Assigned (Search for values in a range)).

    Please check the attachment for details.

    I need the B6 and B10 to return : Min (Numbers Assigned (Search for values in a range)).

    Let me know in case of any clarifications.

    Regards,
    Anshul
    Attached Files Attached Files
    Last edited by anshul1719; 07-14-2016 at 11:44 AM. Reason: Updated attachment

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Min of the numbers assigned for all the values found in a range

    MIN() values are numeric.

    In your sample sheet the raw data we are supposed to evaluate seems to be missing. Can you update?

    Sample sheet should include:
    1) Raw data to evaluate
    2) Manual mockup of the results you want to extract from that sample data.
    3) If needed, explanation of how your results were chosen from the sample.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    Sorry, please check the attachment. I've updated it now.

    Regards,
    Anshul

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range

    Here's the data in your sample file...

    Data Range
    A
    B
    C
    D
    E
    1
    Topic
    Status
    2
    A
    not applicable
    3
    B
    partly realized
    4
    C
    realized
    5
    D
    not realized
    6
    7
    overall status
    8
    9
    E
    10
    F
    11
    G
    12
    ------
    ------
    ------
    ------
    ------


    What are we looking for?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    Sorry again

    Updated it now, please check it.

    Regards,
    Anshul

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range


  7. #7
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    Had requested for deletion of the thread
    http://www.excelforum.com/showthread.php?t=1147699

    Was posted twice due to internet connectivity issues.

    Regards,
    Anshul

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range

    Quote Originally Posted by anshul1719 View Post
    Updated it now, please check it.
    Here's the data in your updated file...

    Data Range
    A
    B
    C
    D
    E
    1
    Topic
    Status
    ------
    ------
    2
    A
    realized
    not applicable
    3
    B
    partly realized
    partly realized
    4
    C
    not realized
    realized
    5
    D
    not applicable
    not realized
    6
    overall status
    7
    E
    realized
    8
    F
    realized
    9
    G
    not applicable
    10
    overall status
    11
    12
    B6=Min(Numbers assigned (values in B2:B5))
    13
    B10=Min(Numbers assigned (values in B7:B9))


    I have no idea what you're wanting to do.

  9. #9
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    OK, Let me explain in details.

    Let's say these are the values assigned -

    not realized = 1
    partly realized = 2
    realized = 3
    not applicable = 4

    Now, B6 = MIN (Numbers assigned (values in B2:B5)) i.e. MIN (realized, partly realized, not realized, not applicable) = MIN(3,2,1,4) = 1 = not realized.
    Hence, B6 should return "not realized".

    Similarly, B10 = MIN (Numbers assigned (values in B7:B9)) i.e. MIN (realized, realized, not applicable) = MIN (3,3,4) = 4 = realized.
    Hence, B10 should return "realized".

    Regards,
    Anshul

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range

    Try this...

    Create the table in E1:F5. It MUST be in the exact order as shown.

    Data Range
    A
    B
    C
    D
    E
    F
    1
    Topic
    Status
    ------
    ------
    Status
    Value
    2
    A
    realized
    not applicable
    4
    3
    B
    partly realized
    not realized
    1
    4
    C
    not realized
    partly realized
    2
    5
    D
    not applicable
    realized
    3
    6
    overall status
    not realized
    7
    E
    realized
    8
    F
    realized
    9
    G
    not applicable
    10
    overall status
    realized


    This array formula** entered in B6:

    =INDEX(E2:E5,MATCH(MIN(LOOKUP(B2:B5,E2:F5)),F2:F5,0))

    This array formula** entered in B10:

    =INDEX(E2:E5,MATCH(MIN(LOOKUP(B7:B9,E2:F5)),F2:F5,0))

    ** 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.

  11. #11
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    It works perfectly.
    Thanks! But couldn't understand the logic of creating the table in E1:F5 in the same order.

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range

    Quote Originally Posted by anshul1719 View Post
    couldn't understand the logic of creating the table in E1:F5 in the same order.
    For it to work properly, the LOOKUP function requires that the items in E2:E5 must be sorted in ascending order.

  13. #13
    Registered User
    Join Date
    07-14-2016
    Location
    Bangalore, India
    MS-Off Ver
    2013
    Posts
    28

    Re: Min of the numbers assigned for all the values found in a range

    OK great! Thanks a lot

  14. #14
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Min of the numbers assigned for all the values found in a range

    You're welcome!

+ 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] Min of the numbers assigned to all values in a range
    By anshul1719 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2016, 12:21 AM
  2. Random Numbers assigned to static values multiple times no duplicates....?
    By rhattala in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-24-2014, 09:40 PM
  3. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  4. [SOLVED] Looking at specific range of numbers and returning the highest found
    By SteinerKD in forum Access Tables & Databases
    Replies: 6
    Last Post: 02-26-2013, 10:10 PM
  5. search a cell for values in a range, return values found
    By carpe.cervisiam in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2011, 12:52 PM
  6. Macro assigned to menu not found
    By fern in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2007, 12:42 AM
  7. Replies: 2
    Last Post: 06-03-2006, 05:25 AM

Tags for this Thread

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