Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2017, 05:49 PM
jonnie_rc jonnie_rc is offline Index Match Formulas Windows 7 64bit Index Match Formulas Office 2010 64bit
Novice
Index Match Formulas
 
Join Date: Aug 2017
Posts: 9
jonnie_rc is on a distinguished road
Default Index Match Formulas

Hi,



I have a problem with picking up rates. I have an average rate and i need to pull from a table the closest fixed rate to the average. I have a jobcode reference i need to use as well as a step. I have attached a sample of the problem. I however have got hundreds of lines of this with many different rates and codes etc.

I ahve tried to use INDEX(MATCH.......formula but i cannot seem to get it to work.

Any help would be welcomed.

Thanks in advance,
john
Attached Files
File Type: xlsx Excel help.xlsx (10.1 KB, 16 views)
Reply With Quote
  #2  
Old 08-31-2017, 09:32 PM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Please explain how you determine the 27,8244999932495 in Summary!B3
Reply With Quote
  #3  
Old 08-31-2017, 11:03 PM
ArviLaanemets ArviLaanemets is offline Index Match Formulas Windows 8 Index Match Formulas Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

To have MATCH to return the position of nearest value, the column where you search for match (99 in your example) must be sorted in right order - otherwise when you are searching match p.e. for 5 in values list 1, 3, 6, 4 in growing order, the result will be 2 (the position of number 3) instead of 4 - because at position 3 is number 6 which is greater than 5. And value list 1, 3, 2, 4, 6 for same example will give also 2 as result, as at position 3 is number smaller then previous one.
Reply With Quote
  #4  
Old 08-31-2017, 11:55 PM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Is it something like the attached?
Attached Files
File Type: xlsx Jobcode.xlsx (12.2 KB, 10 views)
Reply With Quote
  #5  
Old 09-01-2017, 09:31 AM
jonnie_rc jonnie_rc is offline Index Match Formulas Windows 7 64bit Index Match Formulas Office 2010 64bit
Novice
Index Match Formulas
 
Join Date: Aug 2017
Posts: 9
jonnie_rc is on a distinguished road
Default

Quote:
Originally Posted by xor View Post
Is it something like the attached?
Thanks for the formula. It works alright for the jobcode. What i wa shoping to achieve was get the nearest code in the range of jobcodes QARVP 0-3.

I am not sure if it is possible.

I will manage with what I have.

Thanks for your time. Much appreciated.
Reply With Quote
  #6  
Old 09-01-2017, 09:34 AM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I am not sure what is missing. Can't you be a bit more helpful giving some examples of expected results?
Reply With Quote
  #7  
Old 09-01-2017, 10:08 AM
jonnie_rc jonnie_rc is offline Index Match Formulas Windows 7 64bit Index Match Formulas Office 2010 64bit
Novice
Index Match Formulas
 
Join Date: Aug 2017
Posts: 9
jonnie_rc is on a distinguished road
Default

Hi don't worry about it, it's all good.

Basically i have a group of paycodes based on different levels of experience, hence the 0,1,2,& 3. My payroll tool and HR tool however do not talk to eachother so Payroll has them all down as QARXX0 and not any 1,2 or 3. The average rate in my file however is based on the 1,2,3.

So what i was trying to do was based on the 0 code i have in payroll, find the closest rate in the sample rate i gave to the correct code. I have hundreds of paycodes like the sample provided.

Not sure if that makes sense. But like i said, dont worry. Its all good.

Thanks again,
Jon
Reply With Quote
  #8  
Old 09-01-2017, 10:50 AM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I actually made a serious attempt in creating the formula so it is a bit frustrating for me if it is not what you want. But it is difficult for me to understand what you write as you do not give examples of expected results (it may be due to the fact that English is not my mother tongue).

I attach a new version of the file where I have added QARVP1, QARVP2 and QARVP3 to Summary!C4:C6 and corresponding formulas in Summary!E4:E6
Attached Files
File Type: xlsx Jobcode_2.xlsx (12.5 KB, 9 views)
Reply With Quote
  #9  
Old 09-01-2017, 11:47 AM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

I don't know if you at all are interested, but if you are, here is a corrected file. In the previous file I had forgotten som absolute references.
Attached Files
File Type: xlsx Jobcode_3.xlsx (12.8 KB, 11 views)
Reply With Quote
  #10  
Old 09-01-2017, 11:57 AM
jonnie_rc jonnie_rc is offline Index Match Formulas Windows 7 64bit Index Match Formulas Office 2010 64bit
Novice
Index Match Formulas
 
Join Date: Aug 2017
Posts: 9
jonnie_rc is on a distinguished road
Default

Thanks.

Yes this is useful.

An example of what exactly i need is of say the rate in B3 was 30.445then i would like the formula to give me the rate at QARVP2 step 10 of 30.42. That way I would knwo to use that jobcode when entering budget.

Kind regards,
Jon
Reply With Quote
  #11  
Old 09-01-2017, 12:03 PM
jonnie_rc jonnie_rc is offline Index Match Formulas Windows 7 64bit Index Match Formulas Office 2010 64bit
Novice
Index Match Formulas
 
Join Date: Aug 2017
Posts: 9
jonnie_rc is on a distinguished road
Default

Honestly, what you have given me is perfect. I have a work around that i am using where i can use your formula. Its working great.

Don't trouble yourself any more.

Thanks for all the help.
Reply With Quote
  #12  
Old 09-01-2017, 08:31 PM
xor xor is offline Index Match Formulas Windows 10 Index Match Formulas Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,101
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Just one last thing.
The formulas in Summary!E3:E6 are array formulas so please be aware that when entering such a formula you must hold down Ctrl and Shift before pressing Enter (instead of just pressing Enter). If you do it correctly Excel will put brackets around the formula {}. Don't try to enter these brackets manually. When you have entered one array formula correctly you can copy it to other cells as you normally do.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Index and Match Function ,First Second and Third Match paulzy95 Excel 10 09-29-2016 10:46 PM
Index and Match functions aman.chauhan Excel 1 06-18-2016 02:09 AM
Index match vba grexcelman Excel 0 03-05-2015 10:55 PM
Index Match Formulas Index Match function jackzha Excel 5 12-03-2014 12:43 PM
Index Match Formulas Vlookup and If conditions together along with match formulas david_benjamin Excel 2 04-11-2011 11:30 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft