Continuous Dataset to Discrete Dataset - Continued

ahume12

New Member
Joined
Aug 30, 2021
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Building on the response to a previous thread linked here - I have another query in the sorting of continuous data into discrete data.
I had an excellent solution provided to this previous thread using vlookups to get the correct answer, but the I have developed the data and I cant manage to get this previous solution to work.

Building on my previous dataset, I have build in two categories to my data, which are ELR and LINE.

I would like to undertake the same sorting as before, find the minimum temperature in the TEMP column in the DATA FROM based on a FROM and TO mileage in the DATA TO tab however this time, I would like to return values that take the ELR and LINE categories into account and sorts the response accordingly.

I have tried multiple IF functions and excels newer IFS function, but I cant get the logic of these to work.

Would appreciate any help.

DATA FROM
Sample Data AH.xlsx
ABCDE
1ELRLINEFrom Miles DecimalTo Miles DecimalTemp
2BCJDN59.5760.4125.2
3BCJDN60.4160.6617.3
4BCJDN60.6660.9121.4
5BCJDN60.9161.1624.6
6BCJUP59.5760.4119
7BCJUP60.4160.6627
8BCJUP60.6660.9228
9BCJUP60.9261.1616.6
10CJLDN111.72111.970
11CJLDN111.97112.220
12CJLDN112.22112.4717.4
13CJLDN112.47112.7221.9
14CJLUP111.72111.970.0
15CJLUP111.97112.2233.3
16CJLUP112.22112.4723.0
17CJLUP112.47112.7223.8
Data From



DATA TO
Sample Data AH.xlsx
ABCDE
1ELRLINEMiles FromMiles ToMin Temp
2BCJDN59.0059.25N/A
3BCJDN59.2559.50N/A
4BCJDN59.5059.7525.20
5BCJDN59.7560.0025.20
6BCJDN60.0060.2525.20
7BCJDN60.2560.5017.30
8BCJDN60.5060.7517.30
9BCJDN60.7561.0021.40
10BCJDN61.0061.2524.60
11BCJUP59.0059.25N/A
12BCJUP59.2559.50N/A
13BCJUP59.5059.7519.00
14BCJUP59.7560.0019.00
15BCJUP60.0060.2519.00
16BCJUP60.2560.5019.00
17BCJUP60.5060.7527.00
18BCJUP60.7561.0027.00
19BCJUP61.0061.2516.60
20CJLDN111.50111.75N/A
21CJLDN111.75112.000.00
22CJLDN112.00112.250.00
23CJLDN112.25112.5017.40
24CJLDN112.50112.7521.90
25CJLUP111.50111.75N/A
26CJLUP111.75112.000.00
27CJLUP112.00112.2533.30
28CJLUP112.25112.5023.00
29CJLUP112.50112.7523.80
Data To
 

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.
How about
+Fluff 1.xlsm
ABCDE
1ELRLINEMiles FromMiles ToMin Temp
2BCJDN5959.25N/A
3BCJDN59.2559.5N/A
4BCJDN59.559.7525.2
5BCJDN59.756025.2
6BCJDN6060.2525.2
7BCJDN60.2560.517.3
8BCJDN60.560.7517.3
9BCJDN60.756121.4
10BCJDN6161.2524.6
11BCJUP5959.25N/A
12BCJUP59.2559.5N/A
13BCJUP59.559.7519
14BCJUP59.756019
15BCJUP6060.2519
16BCJUP60.2560.519
17BCJUP60.560.7527
18BCJUP60.756116.6
19BCJUP6161.2516.6
20CJLDN111.5111.750
21CJLDN111.751120
22CJLDN112112.250
23CJLDN112.25112.517.4
24CJLDN112.5112.7521.9
25CJLUP111.5111.750
26CJLUP111.751120
27CJLUP112112.2523
28CJLUP112.25112.523
29CJLUP112.5112.7523.8
Data
Cell Formulas
RangeFormula
E2:E29E2=IFERROR(AGGREGATE(15,6,VLOOKUP(Table2[@[Miles From]:[Miles To]],FILTER(Table1[[From Miles Decimal]:[Temp]],(Table1[ELR]=[@ELR])*(Table1[LINE]=[@LINE])),3),1),"N/A")
 
Upvote 0
Solution
This has worked exactly as expected.
This is excellent - thank you very much indeed
I don't pretend to understand it, when I get some time I'll look into the commands. I have never used FILTER before so will definitely have a good look.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,578
Messages
6,125,642
Members
449,245
Latest member
PatrickL

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