#1
|
|||
|
|||
Index and Match Function
Hi,
I am trying to write a formula using Index and Match functions to find the cost based on the type of the vehicle, Sale Price and duration in months. The problem I am having is there is a range of sale Price. If the type of vehicle is New,sale price is less than 20000 and term is 48 months then the Cost is $572. And i don't know how to include the range values in the formula. Right now the formula I am using is {=INDEX(J8:L19,MATCH(1,(K8:K11=C11)*(J8:J19=C9),0) ,3)}. But with this it is only looking for the specific value, not the range of values. Any help is greatly appreciated. Thanks, Mismag |
#2
|
||||
|
||||
Hi and welcome
please post a sample sheet. thx click Go advanced - Manage attachments
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
Is this you need?
You can add vehicle classes and price groups whenever you want. Of-course you have then to update costs table too. And when you add vehicle classes, then you have to update price groups too - add columns for new classes. Columns in price groups table must be in same order as vehicle classes in classes table! In price groups table, prices in all columns must be in growing order! And every price is smallest one in group! Your original pictured tables were flawed btw. - there were gaps (from 20000 to 21000 in one, from 15000 to 21000 in another). |
#4
|
|||
|
|||
ArviLaanemets,
I really appreciate you taking time to help. Quote:
But I am having difficulty in breaking down the formula. What are "nCalcClass,nCalcGroup,nSaleTerm" in the formula? And also Can I create the all the tables in one sheet instead of in individual sheets? Thanks, Mismag |
#5
|
|||
|
|||
Names. There are more of them - Names (Names are returning a value), and Named Ranges (logically, Named Ranges are returning cell range). You see all of them at Formulas>Name Manager (or something like that - I don't have Excel available currently). Some of them are defined as cell reference, some as Table details (Table column dataranges mostly), and for some are formulas used. Generally I use naming convention where the name of Name is started winth letter 'n', or letter 'l' (Latter I use when name is used as source for Data Validation list. Data validation lists can't work with Table formula syntax, so I defined setup Tables, and then defined Table columns as named ranges).
Quote:
And to have all setup-tables on some single setup sheet makes this sheet cluttered for sure. And only reasonable placement of tables with this setup is to distribute them vertically (so you can delete rows from any setup table without problems, does any need for this arise in future). This means you probably can't see them all at once anyway. Edit: An afterthought! I am not sure how familiar you are with defined Tables. When you expand defined Table (add rows), all formulas (and formats, data validations, etc.) are expanded automatically too. But only when formula or format is same for whole column! E.g. when you clear one cell anywhere in column with formula, then after that the formula will not expand into new rows, and when you edit the formula in some cell, the edited formula will not expand to other cells in column anymore too. |
#6
|
|||
|
|||
Thanks a lot ArviLaanemets.
I could find the Name Manager. It's working now. I really appreciate your help. Thanks, Mismag |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel Index and Match function with multiple criteria not searching the next record | mushtaqkadar | Excel | 3 | 06-17-2017 12:20 AM |
Excel - Index and Match Function ,First Second and Third Match | paulzy95 | Excel | 10 | 09-29-2016 10:46 PM |
Index Match Function across different worksheets | shay_mt | Excel | 2 | 04-27-2015 06:04 AM |
Index Match function | jackzha | Excel | 5 | 12-03-2014 12:43 PM |
Moving a Index/Match function | FraserKitchell | Excel | 2 | 01-19-2010 09:38 AM |