Smallest number - fill in this field name

druchex

New Member
Joined
Apr 6, 2015
Messages
2
Hello,

I am not a power excel user and while I'm sure this is easier than I'm making it, I'm struggling with the formula I should use. I have used a geocoding software to tell me how far customer addresses are from each of my companies offices. I need a formula that will look at C2:G2 and then returns the name from sells C1:G1 for the smallest number. For example, for row 1, cell E2 is the smallest number so I'd like my formula to fill E1 to H2. For row 4, the smallest number is cell C4, so H4 should fill in C1.


MadWaukApplRMBloomClosest Office
10285.72155.26248
12811934189234
78136175143208

<tbody>
</tbody>


Thank you!
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Try

=INDEX($C$1:$G$1,MATCH(MIN($C2:$G2),$C2:$G2,0))


Note, if there are blanks in the range, they will be considered 0 and will be chosen as the smallest value.
 
Upvote 0

Forum statistics

Threads
1,214,569
Messages
6,120,286
Members
448,953
Latest member
Dutchie_1

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