+ Reply to Thread
Results 1 to 7 of 7

Require OUTPUT basis 2 figures in INPUT & given Matrix

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Require OUTPUT basis 2 figures in INPUT & given Matrix

    Dear Excel experts,
    We have a matrix for equipment deployment for 3 different conditions in ideal scenario. And accordingly we require OUTPUT considering 2 provided figures and given matrix.

    If, the INPUT figure is lies between 2 figures, OUTPUT figure is to be calculated proportionately considering provided 2 figures in INPUT and above MATRIX.
    For Example,
    QCs = 5 & No of Trucks inside the yard are 350, No of RTGs should be considered in between 28 & 32 considering same ratio between 4 & 6

    If, the INPUT figure is beyond the maximum as per provided MATRIX, OUTPUT figure is to be calculated basis MAXIMUM figure only.
    For Example,
    QCs = 9 & No of Trucks inside the yard are 450, No of RTGs should be considered 37 not beyond that.

    Please help me to resolve the same.

    Thanks in advance.

    RavindraK
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    OUTPUT single figure is require basis..
    updated INPUT (two figures) and given matrix

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,897

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    This proposal employs a helper table (C29:I41) which may be moved down the sheet and/or hidden for aesthetic purposes.
    D30:I30 is populated using: =INDEX($D3:$I3,COUNTA($D3:$I3)+COLUMN($D3:$I3)-COLUMN())
    D32:I41 is populated using: =IFERROR(INDEX($D$5:$I$10,MATCH($C32,$B$5:$B$10,0),MATCH(D$30,$D$3:$I$3,0)),ROUNDUP(SUM(D31,D33)/2,0))
    The formula for the number of RTG's is: =INDEX(D32:I41,MATCH(D14,C32:C41),MATCH(D15,D30:I30))
    The formula for the number of QC's is: =INDEX(C32:C41,AGGREGATE(14,6,(ROW(C32:C41)-ROW(C31))/(D30:I30<=H14)/(INDEX(D32:I41,,MATCH(H14,D30:I30))=H15),1))
    The formula for the number of trucks inside the yard is: =INDEX(D30:I30,AGGREGATE(14,6,(COLUMN(D30:I30)-COLUMN(C30))/(D32:I41=L15)/(C32:C41>=L14),1))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    Thanks a lot Sir,
    It almost done except a minor belwo discripancy..
    Maximum figures are defined even after beyond maximum as per matrix
    However, the figures below minimum is not capturing hare, like after puting INPUT as No of Trucks inside the yard below 225 it's not working and as per requirement it should consider only 225 even input is below 225 i.e. 200, 190, 100, 10 etc., but it should consider only 225 as minimum.
    Please help.
    Thanks in advance.

    RavindraK

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,897

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    See if pasting the following into D18 helps:
    Formula: copy to clipboard
    =IF(D15<D30,INDEX(D32:D41,MATCH(D14,C32:C41)),INDEX(D32:I41,MATCH(D14,C32:C41),MATCH(D15,D30:I30)))

    Let us know if you have any questions.

  6. #6
    Forum Contributor
    Join Date
    07-19-2017
    Location
    Mumbai
    MS-Off Ver
    2013
    Posts
    305

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    Great Sir,
    It's done as expected, you are really a great excel master !!
    hats off to you Sir

    Thanks a lot again.

    RavindraK

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,897

    Re: Require OUTPUT basis 2 figures in INPUT & given Matrix

    You're Welcome and Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] To solve a matrix of Billing & Payment on FIFO basis
    By Vivek2705 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 01-31-2019, 05:41 AM
  2. [SOLVED] Help require to get image in output
    By mso3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-23-2014, 06:46 AM
  3. Not getting output if there is a formula in column B help require
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2014, 12:06 PM
  4. Replies: 17
    Last Post: 10-14-2014, 08:21 AM
  5. [SOLVED] Help require to get a output in total column
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-16-2014, 11:08 AM
  6. Require correct format of output
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-12-2014, 08:49 AM
  7. Using a transition matrix as input to a cummulative matrix
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 04:19 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