Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Index or match?
Im relatively new to using the index function but believe it will do what i
need. I have a bit of experience using Vlookup but i dont think it will do the job for what I need. I have a price list for blinds which is divided by height and width. I want to be able to put the height and width into a cell or cells and then use a lookup formula to return the price, sometimes if the blidn doesnt match the exact size we always round it to the closet value in the table. eg of table 609 813 914 23.53 29.05 1219 25.91 32.27 1524 28.34 35.49 so if the blind was 810 by 910 the price would be 29.05 Can anyone suggest a formula which will do this for me |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Index or match?
On Jun 25, 3:04*pm, Stevie G <Stevie
wrote: Im relatively new to using the index function but believe it will do what i need. I have a bit of experience using Vlookup but i dont think it will do the job for what I need. I have a price list for blinds which is divided by height and width. I want to be able to put the height and width into a cell or cells and then use a lookup formula to return the price, sometimes if the blidn doesnt match the exact size we always round it to the closet value in the table. eg of table * * * * * * * * *609 * * * * * *813 914 * * * * * * 23.53 * * * * * * 29.05 1219 * *25.91 * * * * *32.27 1524 * *28.34 * * * * *35.49 so if the blind was 810 by 910 the price would be 29.05 Can anyone suggest a formula which will do this for me I'd use the match function BUT set the sizes to the LOWEST value we would use that size for (so 0, 610 instead of 609, 813) Match the width against the width, and the height against the height - use the resulting vectors with the index function. This question sounds horribly familiar as I've done a sample sheet for someone else with the same problem,but of course I cannot find it at the moment! |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Index or match?
Aidan thanks very much for the help it worked great, i now have another
question if you would be so kind! If i wanted to lookup the price from various tables ie Price Group A, Price Group B, Price Group C etc. Can i add a variable that will allow me to pick which table to lookup depending on what was entered in a certain cell, for example if i put an b in it, i would want to index price group b I have tried referring to another cell that contains the array data =INDEX(N15,I11,H11) where n15 = the name of the range i want to use but this doesnt seem to work " wrote: On Jun 25, 3:04 pm, Stevie G <Stevie wrote: Im relatively new to using the index function but believe it will do what i need. I have a bit of experience using Vlookup but i dont think it will do the job for what I need. I have a price list for blinds which is divided by height and width. I want to be able to put the height and width into a cell or cells and then use a lookup formula to return the price, sometimes if the blidn doesnt match the exact size we always round it to the closet value in the table. eg of table 609 813 914 23.53 29.05 1219 25.91 32.27 1524 28.34 35.49 so if the blind was 810 by 910 the price would be 29.05 Can anyone suggest a formula which will do this for me I'd use the match function BUT set the sizes to the LOWEST value we would use that size for (so 0, 610 instead of 609, 813) Match the width against the width, and the height against the height - use the resulting vectors with the index function. This question sounds horribly familiar as I've done a sample sheet for someone else with the same problem,but of course I cannot find it at the moment! |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Index or match?
Steve,
You can use INDIRECT to do what you describe. If you post the formula you are using and give a few more details of your data layout and what you want to achieve then I'm sure someone (like me) will be able to give you an amended formula. Pete On Jun 26, 12:27*pm, Stevie G wrote: Aidan thanks very much for the help it worked great, i now have another question if you would be so kind! If i wanted to lookup the price from various tables ie Price Group A, Price Group B, Price Group C etc. Can i add a variable that will allow me to pick which table to lookup depending on what was entered in a certain cell, for example if i put an b in it, i would want to index price group b I have tried referring to another cell that contains the array data =INDEX(N15,I11,H11) where n15 = the name of the range i want to use but this doesnt seem to work " wrote: On Jun 25, 3:04 pm, Stevie G <Stevie wrote: Im relatively new to using the index function but believe it will do what i need. I have a bit of experience using Vlookup but i dont think it will do the job for what I need. I have a price list for blinds which is divided by height and width. I want to be able to put the height and width into a cell or cells and then use a lookup formula to return the price, sometimes if the blidn doesnt match the exact size we always round it to the closet value in the table. eg of table * * * * * * * * *609 * * * * * *813 914 * * * * * * 23.53 * * * * * * 29.05 1219 * *25.91 * * * * *32.27 1524 * *28.34 * * * * *35.49 so if the blind was 810 by 910 the price would be 29.05 Can anyone suggest a formula which will do this for me I'd use the match function BUT set the sizes to the LOWEST value we would use that size for (so 0, 610 instead of 609, 813) Match the width against the width, and the height against the height - use the resulting vectors with the index function. This question sounds horribly familiar as I've done a sample sheet for someone else with the same problem,but of course I cannot find it at the moment!- Hide quoted text - - Show quoted text - |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Index or match?
Steve emailed me directly (and it turns out he is in the same town as
me), so I was able to amend his formulae to incorporate INDIRECT in the INDEX formula - essentially, something like: =INDEX(INDIRECT("table"&$C$3),H7,I7) where H7 and I7 contained formulae to match the horizontal and vertical components, and C3 contained a pull-down to select A, B, C or D. There were 4 named ranges (tableA, tableB etc.) which he wanted to be able to select from. Just for completeness ... Pete On Jun 26, 1:07*pm, Pete_UK wrote: Steve, You can use INDIRECT to do what you describe. If you post the formula you are using and give a few more details of your data layout and what you want to achieve then I'm sure someone (like me) will be able to give you an amended formula. Pete On Jun 26, 12:27*pm, Stevie G wrote: Aidan thanks very much for the help it worked great, i now have another question if you would be so kind! If i wanted to lookup the price from various tables ie Price Group A, Price Group B, Price Group C etc. Can i add a variable that will allow me to pick which table to lookup depending on what was entered in a certain cell, for example if i put an b in it, i would want to index price group b I have tried referring to another cell that contains the array data =INDEX(N15,I11,H11) where n15 = the name of the range i want to use but this doesnt seem to work " wrote: On Jun 25, 3:04 pm, Stevie G <Stevie wrote: Im relatively new to using the index function but believe it will do what i need. I have a bit of experience using Vlookup but i dont think it will do the job for what I need. I have a price list for blinds which is divided by height and width.. I want to be able to put the height and width into a cell or cells and then use a lookup formula to return the price, sometimes if the blidn doesnt match the exact size we always round it to the closet value in the table. eg of table * * * * * * * * *609 * * * * * *813 914 * * * * * * 23.53 * * * * * * 29.05 1219 * *25.91 * * * * *32.27 1524 * *28.34 * * * * *35.49 so if the blind was 810 by 910 the price would be 29.05 Can anyone suggest a formula which will do this for me I'd use the match function BUT set the sizes to the LOWEST value we would use that size for (so 0, 610 instead of 609, 813) Match the width against the width, and the height against the height - use the resulting vectors with the index function. This question sounds horribly familiar as I've done a sample sheet for someone else with the same problem,but of course I cannot find it at the moment!- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
index Match, or Vlookup Match.. | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Index and match | Excel Worksheet Functions | |||
How do I display more than one match in a Index/Match formula? | Excel Worksheet Functions | |||
index,match,match on un-sorted data | Excel Worksheet Functions |