Formula - Combine exclusions in a search

ChrisMac1

New Member
Joined
Jul 15, 2024
Messages
30
Office Version
  1. 365
Platform
  1. Windows
Hi there... I have a formula that I believe is currently returning results from blank cells. Any idea how I get those ignored too in the following formula please?

=MIN(IF(ORGANIC!$AG$2:$AG$100000<>"RESOLVED", ORGANIC!$S$2:$S$100000))

The result needed is the item in column AG (rows 2 to 100000) that has the oldest date shown in column S (rows 2 to 100000), and items called RESOLVED should not be included.

Many thanks,
MAC
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about
Excel Formula:
=TAKE(SORT(FILTER(ORGANIC!$S$2:$AG$100000,(ORGANIC!$AG$2:$AG$100000<>"RESOLVED")*(ORGANIC!$S$2:$S$100000<>"")),1),1,-1)
 
Upvote 0
WOW, I would never have got anywhere near there :)

It almost works except it's returning the item name and not the date. Sorry if I have written something misleading. The item is in column AG and the date is in column S, and I am not confident trying to tweak your formula, sorry, can you help me again please? It's the date IO need for that oldest item not called blank or RESOLVED
 
Upvote 0
How about
Excel Formula:
=TAKE(SORT(FILTER(ORGANIC!$S$2:$S$100000,(ORGANIC!$AG$2:$AG$100000<>"RESOLVED")*(ORGANIC!$S$2:$S$100000<>""))),1)
 
Upvote 0
Hi there... I have a formula that I believe is currently returning results from blank cells. Any idea how I get those ignored too in the following formula please?

=MIN(IF(ORGANIC!$AG$2:$AG$100000<>"RESOLVED", ORGANIC!$S$2:$S$100000))

The result needed is the item in column AG (rows 2 to 100000) that has the oldest date shown in column S (rows 2 to 100000), and items called RESOLVED should not be included.

Many thanks,
MAC
try this
=MIN(IF(ORGANIC!$AG$2:$AG$100000<>"RESOLVED",IF(ISBLANK(ORGANIC!$S$2:$S$100000),"",ORGANIC!$S$2:$S$100000),""))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
You're welcome & thanks for the feedback.
Fluff, very sorry, this was my fault, an oversight on the formatting. How can I include this formatting that I have on another formula above? =UPPER(TEXT(ORGANIC!$S$2, "d MMM 'yy"))

It changes the date to UPPERCASE and a specific format.
 
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