Swap Array for Non-Contigous range in MIN(IF formula

JonReyno

Board Regular
Joined
Jun 8, 2009
Messages
130
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have the following formula which works, but the ranges that I am using are now broken up. Is there a way to put in a non-contiguous range in their place?


=MINIFS(B5:B16,C5:C16,">"&0)

Basically what I am trying to do is pull through the min date where there is a result next to it. I have a repeat of 3 columns, Date, Result & Comment, which is repeated 12 times. What I'm trying to do may not be possible, but I'm trying to figure out if I can do it.

Any help would be appreciated

Many Thanks
Jon
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Working with disjoint ranges is always a pain. The best I came up with is to treat all 3 ranges as a large range, but then to use MOD to ignore the columns that you don't want. Try:

Book1
ABCDEFGHIJKLM
1
2
32-Jan
4
51-Jan1-Feb51-Mar
62-Jan12-Feb2-Mar6
73-Jan3-Feb53-Mar6
84-Jan34-Feb4-Mar
95-Jan5-Feb5-Mar
106-Jan6-Feb6-Mar
117-Jan7-Feb7-Mar
128-Jan78-Feb78-Mar
139-Jan9-Feb9-Mar9
1410-Jan10-Feb10-Mar
1511-Jan11-Feb11-Mar
1612-Jan12-Feb12-Mar
Sheet1
Cell Formulas
RangeFormula
A3A3=MIN(IF(MOD(COLUMN(C3:M16)-COLUMN(C3),5)=0,IF(C3:M16>0,B3:L16)))
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


This assumes that the columns you want are 5 columns apart. If the actual distance is different, change the 5 in the formula.
 
Upvote 0
Thank you so much Eric, this has worked a treat!! Sadly my colleagues don't seem to take into account how much of a pain some of things they ask are to actually create! If I had £ for every time someone said 'can you just...' I'd be able to retire!

Thank you for your help, it's truly appreciated
 
Upvote 0
Apparently you keep coming through, or they'd stop asking! ;)

Glad I could help! :cool:
 
Upvote 0
It would appear so! haha... My manager has already said I have made a rod for my own back. Once word got out that I can use Excel. everyone seems to want to be my best friend.... funny that!
 
Upvote 0

Forum statistics

Threads
1,215,507
Messages
6,125,212
Members
449,214
Latest member
mr_ordinaryboy

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