hi all...
i have problem about how to lookup data based on nearest number or round number
with criteria <.50 --rounddown or >=.50 --roundup
for easy, please check my attachment file..
for anyhelp help me, greatly appreciated..
john m
hi all...
i have problem about how to lookup data based on nearest number or round number
with criteria <.50 --rounddown or >=.50 --roundup
for easy, please check my attachment file..
for anyhelp help me, greatly appreciated..
john m
How do you determine that 101.0 (cell B10) should be in Cluster 1.2 and not 1.1?
ChemistB
My 2?
substitute commas with semi-colons if your region settings requires
Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)
Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble
hi...
cause 100.50 ---with decimal .50 so roundup to or nearest to 101.00
criteria: if decimal <.50 ---rounddown or if decimal >=.50 ----roundup
Last edited by AliGW; 03-31-2020 at 12:02 PM. Reason: Please don't quote unnecessarily!
If i've understood what you're trying to do - I would be inclined to store the co-ordinates of the closest match, once, (having adjusted model values per rounding requirement), and then use the co-ordinates to return the cluster & model values, e.g.:
Formula:Please Login or Register to view this content.
per your sample this would generate 1.1 / Best, 1.2 / Best, 1.2 / Better, 1.2 / Worst ... and if you added say 168 as new row that would generate 2.1 / Better
Please try at
C9
=LOOKUP(1,1/MMULT(--(MIN(ABS(B9-$B$3:$D$5))=ABS(B9-$B$3:$D$5)),TRANSPOSE(COLUMN($B$3:$D$5))^0),$A$3:$A$5)
D9
=LOOKUP(1,1/MMULT(TRANSPOSE(ROW($B$3:$D$5))^0,--(MIN(ABS(B9-$B$3:$D$5))=ABS(B9-$B$3:$D$5))),$B$2:$D$2)
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Last edited by Bo_Ry; 03-31-2020 at 12:14 PM. Reason: correction
thank guys..work perfect!!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks