Formula to get highest value between two numbers

aliaslamy2k

Active Member
Joined
Sep 15, 2009
Messages
416
Office Version
  1. 2019
Platform
  1. Windows
Dear Experts,

I want to formula to display the highest number in between two numbers.

Example :
1. In Cell AQ8 display highest between 30 to 45 else blank
2. In Cell AQ9 Display highest number between 10 to 30 else blank
3. In Cell AQ10 Display highest number between 0 to 10 else blank



Book1
AKALAMANAOAPAQAR
5Licence ExpirationLIC Days Remaining
618-Dec-96LIC EXPIRED
723-Apr-15LIC EXPIREDGreater ThanLess thanResultRemarks
813-Apr-17LIC EXPIRED304544To check in column AL and get the result in AQ8
919-Jul-17LIC EXPIRED103029To check in column AL and get the result in AQ9
1025-Jan-18LIC EXPIRED0109To check in column AL and get the result in AQ10
1114-Mar-18LIC EXPIRED
1216-Oct-18LIC EXPIRED
134-Nov-18LIC EXPIRED
144-Nov-18LIC EXPIRED
159-Jan-19LIC EXPIRED
162-Apr-19LIC EXPIRED
179-Jun-19LIC EXPIRED
1820-Jul-19LIC EXPIRED
1925-Jul-19LIC EXPIRED
2028-Jul-19LIC EXPIRED
2128-Jul-19LIC EXPIRED
2228-Jul-19LIC EXPIRED
2328-Jul-19LIC EXPIRED
2413-Oct-19LIC EXPIRED
2520-Oct-19LIC EXPIRED
2620-Oct-19LIC EXPIRED
2714-Nov-19LIC EXPIRED
2814-Nov-19LIC EXPIRED
295-Feb-20LIC EXPIRED
3016-Feb-20LIC EXPIRED
3119-Feb-20LIC EXPIRED
322-Mar-20LIC EXPIRED
339-Mar-20LIC EXPIRED
3418-Mar-20LIC EXPIRED
3523-Mar-20LIC EXPIRED
3623-Mar-20LIC EXPIRED
3725-Mar-201
3826-Mar-202
3926-Mar-202
4026-Mar-202
4126-Mar-202
4226-Mar-202
4326-Mar-202
4426-Mar-202
4526-Mar-202
4626-Mar-202
4726-Mar-202
4826-Mar-202
4926-Mar-202
5026-Mar-202
5126-Mar-202
5226-Mar-202
5326-Mar-202
5426-Mar-202
5526-Mar-202
5626-Mar-202
572-Apr-209
587-Apr-2014
5913-Apr-2020
6013-Apr-2020
6114-Apr-2021
6223-Apr-2030
6323-Apr-2030
6423-Apr-2030
6523-Apr-2030
6624-Apr-2031
6727-Apr-2034
6827-Apr-2034
6927-Apr-2034
704-May-2041
715-May-2042
7213-Apr-2020
7315-May-2052
7417-May-2054
7518-May-2055
7620-May-2057
7721-May-2058
7821-May-2058
7928-May-2065
809-Jun-2077
819-Jun-2077
8210-Jun-2078
8311-Jun-2079
8414-Jun-2082
8515-Jun-2083
8615-Jun-2083
8718-Jun-2086
8830-Jun-2098
8930-Jun-2098
903-Jul-20101
917-Jul-20105
9213-Jul-20111
9314-Jul-20112
9421-Jul-20119
9523-Jul-20121
9624-Jul-20122
9724-Jul-20122
9824-Jul-20122
9931-Jul-20129
1007-Aug-20136
1017-Aug-20136
10217-Aug-20146
10321-Aug-20150
10424-Aug-20153
10527-Aug-20156
10628-Aug-20157
10731-Aug-20160
1081-Sep-20161
1098-Sep-20168
1108-Sep-20168
1118-Sep-20168
1128-Sep-20168
1139-Sep-20169
11411-Sep-20171
11519-Sep-20179
11630-Sep-20190
1171-Oct-20191
1181-Oct-20191
1191-Oct-20191
1201-Oct-20191
1211-Oct-20191
1228-Oct-20198
1239-Oct-20199
12416-Oct-20206
12521-Oct-20211
12621-Oct-20211
12726-Oct-20216
12826-Oct-20216
12927-Oct-20217
1303-Nov-20224
1313-Nov-20224
1326-Nov-20227
1339-Nov-20230
13413-Nov-20234
13519-Nov-20240
13620-Nov-20241
13722-Nov-20243
13826-Nov-20247
13926-Nov-20247
14026-Nov-20247
14130-Nov-20251
14212-Dec-20263
14322-Dec-20273
14425-Dec-20276
14525-Dec-20276
14629-Dec-20280
14730-Dec-20281
1488-Jan-21290
14915-Jan-21297
15015-Jan-21297
15115-Jan-21297
15222-Jan-21304
15326-Jan-21308
15426-Jan-21308
1559-Feb-21322
1569-Feb-21322
15711-Feb-21324
15811-Feb-21324
15912-Feb-21325
16016-Feb-21329
16116-Feb-21329
16217-Feb-21330
16318-Feb-21331
16418-Feb-21331
16523-Feb-21336
16623-Feb-21336
16723-Feb-21336
1682-Mar-21343
1699-Mar-21350
17029-Dec-2020  
171Available 
172Available 
173Available 
174Available 
175Available 
176Available 
177Available 
178Available 
179Available 
180Available 
181Available 
182Available 
183Available 
184Available 
185Available 
186Available 
187Available 
188Available 
189Available 
190Available 
191Available 
192Available 
193Available 
194Available 
195Available 
196Available 
197Available 
198Available 
199Available 
200Available 
201Available 
202Available 
203Available 
204Available 
205Available 
206Available 
207Available 
208Available 
209Available 
210Available 
211Available 
212Available 
213Available 
214Available 
215Available 
216Available 
217Available 
218Available 
219Available 
220Available 
221NO 
222NO 
223NO 
224NO 
225NO 
226NO 
227NO 
228NO 
229NO 
230NO 
231NO 
232NO 
233NO 
234NO 
235NO 
236NO 
Sheet1
 
Hi Peter,

Actually i am trying to get the vehicle license plate number which falls under the criteria of 30 - 45 days, 10 to 30 days and 0 to 10 days.
Yes, i have entered these values manually because i dont know how to write a formula to get this resuls.

Excel Formulas.xlsx
AOAPAQARASATAUAV
630 - 45 10 - 30 0 - 10
7Vehicle NumberLIC Days RemainingVehicle NumberLIC Days RemainingVehicle NumberLIC Days Remaining
824076730264881143200551
928359730104516204551012
1031485230305660202168302
1131220930127539212157972
1225394331718771202142182
1346242343067962
14320296343051142
15320295345564922
16168467413072422
1734163423069242
183075242
193065582
203050932
213051942
223054552
233057122
243051962
253071192
262067562
273064152
282634439
Sheet1
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
See if this is what you want. If so, hopefully you can adapt to your actual ranges and for the 10-30 and 0-10 sections.

aliaslamy2k 2020-03-27 1.xlsm
DEFGHIJ
5IDVehicle NumberLIC Days Remaining
61782312830 - 45
7254705145Vehicle NumberLIC Days Remaining
833434620030545530
94116609774120731
1055702422932005531
11663359510371877133
127153054121579737
138140236711530541
149152576228378042
1510491483  
161123269025  
17122329886  
18134120468
19144299021
2015186324127
211641205110
22174120731
231841208187
24192955586
252046963120
26214696254
2722283779122
282328378042
292425427317
3025739050153
3126668344180
322759494190
33284604702
3429264925142
3530283761145
363128376065
373232005531
3833455101186
393421683070
403521579737
4136214218192
4237306796127
4338305114114
443955649269
454030724220
46413069241
474230752495
484330655847
494430509355
5045305194163
514630545530
5247305712143
5348305196191
544930711969
555020675663
5651306415170
5752263443155
5853264881198
5954104516125
6055305660126
615612753922
625724076749
6358283597132
6459314852153
6560312209125
666125394315
67624624289
6863320296143
6964320295128
7065168467185
71663416348
726771877133
736826658093
746921194926
7570159021197
Sheet1
Cell Formulas
RangeFormula
I8:I17I8=IF(J8="","",INDEX(E$6:E$75,AGGREGATE(15,6,(ROW(F$6:F$75)-ROW(F$6)+1)/(F$6:F$75=J8),COUNTIF(J$8:J8,J8))))
J8:J17J8=IFERROR(AGGREGATE(15,6,F$6:F$75/((F$6:F$75>=30)*(F$6:F$75<45)),ROWS(J$8:J8)),"")
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,458
Members
449,085
Latest member
ExcelError

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