+ Reply to Thread
Results 1 to 7 of 7

Need to find any point within a 4R by 9C table of data between listed values

Hybrid View

  1. #1
    Registered User
    Join Date
    01-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Need to find any point within a 4R by 9C table of data between listed values

    Hi All,
    I am new here but have a reasonable understanding of Excel formulas and some VB / Macro work. I am not an expert by any means and I need help with the following.

    I have a table that lists tire spring rates at tested PSI and Camber values from the manufacture.
    The table is 4 rows with PSI values for Row headders and 9 columns with Camber degree values for Column headers.
    I need to be able to input any Camber value in the range of the column headers including those between listed values and any Tire PSI at all including those between listed values and be able to get an accurate tire spring rate to be displayed as a number to be used in other caluclations.

    I have made a pretty eleborate Forecast routine and PSI calculation to achieve my goal but there must be a better way to extract data that is right in front of me in a table.
    I have attached my working example but would love a VB Macro to do a lot of this in the background for me or find out there is a better formula stratagy to use. This is not the only table I may have to do this with. In my real workbook many named cells and ranges are used.

    Thanks in advance for any help.
    Bud
    Attached Files Attached Files
    Last edited by Bud Wilkinsonn; 01-09-2013 at 06:19 PM. Reason: Attacch Missing Worksheet

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: Need to find any point within a 4R by 9C table of data between listed values

    assuming your data is in A1:J5, and you have the PSI in K1 and the Camber in L1...

    =index(A1:J5,Match(K1,A1:A5,0),match(L1,A1:J1,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need to find any point within a 4R by 9C table of data between listed values

    Quote Originally Posted by FDibbins View Post
    assuming your data is in A1:J5, and you have the PSI in K1 and the Camber in L1...

    =index(A1:J5,Match(K1,A1:A5,0),match(L1,A1:J1,0))
    FDibbins,
    Thanks for this. This is a very elegant way of finding the listed data points in the listed ranges and will be useful to me in the future as well but I needed to be able to project and retrieve the data from ranges between those listed based on the data and ranges that are listed in the manor that tigeravatar's solution provides.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,378

    Re: Need to find any point within a 4R by 9C table of data between listed values

    Hi Bud,

    You didn't supply a sample PSI vs CAM table so I made one up. Here is a double approximation method to find values in between others in a table. See if you can see what I've done in the attached. If you can't then attach your real table and let us have a go at it.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    01-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need to find any point within a 4R by 9C table of data between listed values

    Quote Originally Posted by MarvinP View Post
    Hi Bud,

    You didn't supply a sample PSI vs CAM table so I made one up. Here is a double approximation method to find values in between others in a table. See if you can see what I've done in the attached. If you can't then attach your real table and let us have a go at it.
    MarvinP,
    Thanks for this. This routine also works very well with my table plugged in to place and predicts all the data points between all the listed ones for both inputs and results from the table.

    Thanks all

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need to find any point within a 4R by 9C table of data between listed values

    Sorry, didn't realize there was a duplicate thread. I posted my response based off of your sample workbook in the duplicate thread
    http://www.excelforum.com/excel-form...75#post3074975
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    01-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Need to find any point within a 4R by 9C table of data between listed values

    Quote Originally Posted by tigeravatar View Post
    Sorry, didn't realize there was a duplicate thread. I posted my response based off of your sample workbook in the duplicate thread
    http://www.excelforum.com/excel-form...75#post3074975
    I didn't relize I had made a duplicate post either. I had some login trouble early on.

    tigeravatar,
    Thanks a ton for this formula. There are many elements within it I have not used before so I will be disecting it a bit to help understand what is going on. As I said this may not be the only table that I need to do this with in the future.
    Pasted into cell G2 of my example worksheet, this works great. It is very close to what I needed.

    =FORECAST(D1,INDEX(--TRIM(MID(FORECAST(D2,OFFSET(B4,MATCH(D2,B5:B8),MATCH(D1,C4:K4),2),OFFSET(B4,MATCH(D2,B5:B8),,2))&REPT(" ",99)&FORECAST(D2,OFFSET(B4,MATCH(D2,B5:B8),MATCH(D1,C4:K4)+1,2),OFFSET(B4,MATCH(D2,B5:B8),,2)),{1,99},99)),),OFFSET(B4,,MATCH(D1,C4:K4),,2))
    There is only one more element I need to add and that would be the ability to forcast exponentally below and above the listed PSI by the closest available delta as is done in the M5:M13 table of my worksheet.

    MarvinP,
    Sorry this was a duplicate posting. I will edit the OP to attach the example worksheet.

    Thanks All
    Last edited by Bud Wilkinsonn; 01-09-2013 at 10:15 PM. Reason: Add Solution Code

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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