Returning data label when using a 'Small' formula

TheGent

New Member
Joined
Oct 23, 2017
Messages
10
I am using the below formula to return the smallest number in a range.

=SMALL(IF('YoY View - Dep & Cat'!$D$6:$D$108='Call Outs'!$C$4,'YoY View - Dep & Cat'!$U$6:$U$108),$B5)

I would like to return the label of the result, I'm having difficulty doing so.

For example the above formula would return '201.4' which is correct but I want a formula that will now return the label that accompanies this number i.e. Dave.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Try wrapping your existing formula inside the Offset() function.

=Offset("YourExistingFormula",X,Y) when X is # of Rows to offset and Y is the # of Columns to offset
 
Last edited:
Upvote 0
Try wrapping your existing formula inside the Offset() function.

=Offset("YourExistingFormula",X,Y) when X is # of Rows to offset and Y is the # of Columns to offset

No luck with the above - I should have mentioned the existing formula is an array.
 
Upvote 0
After {Editing} you did of course commit with the Key-Board strokes - Control+Shift+Enter - Right?
If so then sorry -- I can't offer anything else. Jim
 
Last edited:
Upvote 0
Which column is the label in, and what result would you expect if more than one label had the same value?
 
Upvote 0
My label is in 'YoY View - Dep & Cat'!$F$6:$F$108

The way this is built I wouldn't expect duplicate values to be an issue as I want to return the exact label for the exact value returned.

I currently have a workaround but this does not take into account if there are any duplicates...

=INDEX('YoY View - Dep & Cat'!$F$112:$F$214,MATCH('Call Outs'!$E8,'YoY View - Dep & Cat'!$U$112:$U$214,0))
 
Upvote 0
Say the labels are in column A, that is, 'YoY View - Dep & Cat'!$A$6:$A$108 (adjust to suit)

Try
=INDEX('YoY View - Dep & Cat'!$A$6:$A$108,MATCH(your_formula_here,IF('YoY View - Dep & Cat'!$D$6:$D$108='Call Outs'!$C$4,'YoY View - Dep & Cat'!$U$6:$U$108),0))
Ctrl+Shift+Enter

M.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top