Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2016, 05:26 AM
mmaghraby mmaghraby is offline How can i retrieve a cell value based on two arrays Windows 8 How can i retrieve a cell value based on two arrays Office 2013
Novice
How can i retrieve a cell value based on two arrays
 
Join Date: Oct 2016
Posts: 2
mmaghraby is on a distinguished road
Post How can i retrieve a cell value based on two arrays

Hi All,


I'm not an expert in Excel, and I've been trying to learn how to retrieve the green cell value with a formula.

So basically a formula that says the following: ( please refer to the attached Table)

1) Look for [F2] which is Brand 2
2) Look for the closest or nearest number to [F3] which is 15
3) Retrieve the cross matching exact value which is 5.

I've managed to use a formula to retrieve exact match (if I write 18.9 in [F3] I get the green cell, but if I put a number that is not in column A, the formula gives an N/A)

Would appreciate your help.

Image
Thanks,
Maghraby
Attached Images
File Type: png Tableeeeee.png (5.8 KB, 18 views)
Reply With Quote
  #2  
Old 10-16-2016, 06:35 AM
xor xor is offline How can i retrieve a cell value based on two arrays Windows 10 How can i retrieve a cell value based on two arrays Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
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

=IF(F3>MAX(A2:A4),"",INDEX(B2:d4,MIN(IF(A2:A4>F3,R OW(A2:A4)-1)),MATCH(F2,B1:d1,0)))

It is an array formula so when entering remember to hold down Ctrl and Shift before pressing Enter. If you do it correctly Excel will automatically put braces {} around the formula.
Reply With Quote
  #3  
Old 10-16-2016, 07:47 AM
mmaghraby mmaghraby is offline How can i retrieve a cell value based on two arrays Windows 8 How can i retrieve a cell value based on two arrays Office 2013
Novice
How can i retrieve a cell value based on two arrays
 
Join Date: Oct 2016
Posts: 2
mmaghraby is on a distinguished road
Default

XOR: Thank you very much, works perfectly.

Really appreciate your help
Reply With Quote
  #4  
Old 10-16-2016, 06:39 AM
xor xor is offline How can i retrieve a cell value based on two arrays Windows 10 How can i retrieve a cell value based on two arrays Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,100
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 note that there should not be a space between R and OW.
I don't know why msofficeforums often makes this error even if the formula is correct when posting.
Reply With Quote
Reply

Tags
array, lookup, match/index



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i retrieve a cell value based on two arrays Need to default the Cost Column based on another column's value ProjectCalcs Project 1 10-03-2016 07:02 AM
How can i retrieve a cell value based on two arrays If value of cell A Matches a value in a Range of cells (column) then add value of cell A to cell C rick10r Excel 1 07-05-2016 12:07 PM
Rounding to nearest 0.25 Guloluseus Excel 5 10-27-2015 11:28 PM
Mouseover cell to indicate mouse pointer location based on Specific Row/Column values bolandk Excel 1 05-15-2014 08:22 AM
How can i retrieve a cell value based on two arrays Need help on duplicates in column; deciding which to keep based on other column nwcf Excel 3 01-31-2014 09:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:59 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