max value in column and related time

Mollymm

New Member
Joined
Aug 27, 2014
Messages
4
I have 2 columns of numbers, A is time and B is a list of numbers.
I need to find the find and record the number in column B that is the greatest diffference from 0, it may be positive or negative. Then report the corresponding time from column A.

Thank you for helping.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Try this. As with vlookup it will return the first value in event there are two the same. Has to be entered CNTL-SHIFT-ENTER. Works for 100 cells each column. If you need any more adjust.

=INDEX(A1:A100,MATCH(MAX(ABS(B1:B100)),ABS(B1:B100),0))
 
Upvote 0
Thank you for the help.
When I enter this I am getting the time (from column A) which I need, but not the corresponding (max) number from column B
 
Upvote 0
Hopefully one last question, thank you for your patience.

=MAX(ABS(B1:B100)) gives me the max abs, yes. If the number is negative I loose that information, is there a way to regain it?
 
Upvote 0
Try this:

=IF((MAX(B1:B100)+MIN(B1:B100))>0,MAX(B1:B100),MIN(B1:B100))
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,630
Members
449,041
Latest member
Postman24

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