thevidablue
New Member
- Joined
- Mar 5, 2018
- Messages
- 4
Hi
I have a tricky formula I cannot figure out myself. Tried various combination with no real luck. Simply over my head
First off, my "masterdata" in one tab looks like below:
[TABLE="width: 399"]
<tbody>[TR]
[TD]TRADE
[/TD]
[TD]POL
[/TD]
[TD]Carrier
[/TD]
[TD="align: right"]Value
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]850
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]750
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]775
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]650
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]600
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]650
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]450
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]550
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]550
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1300
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1300
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1200
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1200
[/TD]
[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D]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
</tbody>[/TABLE]
So, to automize the values in carrier 1, carrier 2, carrier 3 & carrier 4 I need to look up "trade" and "POL", find the lowest value in column four and once this is found return the value in "carrier".
The masterdata is 2600 rows long, sometimes there is only one carrier, sometimes there are ten. I want to find the cheapeast one and display it in "carrier 1", I then want to display the second cheapest one in "carrier 2", third cheapest in "carrier 3" and fourth in "carrier 4".
Can this be done via vlookup+MIN somehow, or via index/match+MIN?
Many thanks in advance!!!
Daniel
I have a tricky formula I cannot figure out myself. Tried various combination with no real luck. Simply over my head
First off, my "masterdata" in one tab looks like below:
[TABLE="width: 399"]
<tbody>[TR]
[TD]TRADE
[/TD]
[TD]POL
[/TD]
[TD]Carrier
[/TD]
[TD="align: right"]Value
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]850
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]750
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]775
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]650
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]950
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]600
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]650
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]450
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]550
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]550
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD="align: right"]500
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]OOLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1300
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1300
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1000
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]HPLU
[/TD]
[TD="align: right"]1100
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]800
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD="align: right"]700
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]900
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1200
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]MAEU
[/TD]
[TD="align: right"]1200
[/TD]
[/TR]
</tbody>[/TABLE]
In a separate tab I want to find the following results:
[TABLE="width: 570"]
<tbody>[TR]
[TD]TRADE
[/TD]
[TD]POL
[/TD]
[TD]Carrier 1
[/TD]
[TD]Carrier 2
[/TD]
[TD]Carrier 3
[/TD]
[TD]Carrier 4
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEGOT
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD]NYKU
[/TD]
[TD]OOLU
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SEHEL
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD]NYKU
[/TD]
[TD]OOLU
[/TD]
[/TR]
[TR]
[TD]AFRICA
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD]OOLU
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEGOT
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD]NYKU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SEHEL
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD]NYKU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]AMNO
[/TD]
[TD]SENRK
[/TD]
[TD]NYKU
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD]OOLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD]OOLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]LATAM
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD]OOLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEGOT
[/TD]
[TD]COSU
[/TD]
[TD]MAEU
[/TD]
[TD]HPLU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SEHEL
[/TD]
[TD]COSU
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
[TR]
[TD]SPAC
[/TD]
[TD]SENRK
[/TD]
[TD]COSU
[/TD]
[TD]HPLU
[/TD]
[TD]MAEU
[/TD]
[TD] -
[/TD]
[/TR]
</tbody>[/TABLE]
So, to automize the values in carrier 1, carrier 2, carrier 3 & carrier 4 I need to look up "trade" and "POL", find the lowest value in column four and once this is found return the value in "carrier".
The masterdata is 2600 rows long, sometimes there is only one carrier, sometimes there are ten. I want to find the cheapeast one and display it in "carrier 1", I then want to display the second cheapest one in "carrier 2", third cheapest in "carrier 3" and fourth in "carrier 4".
Can this be done via vlookup+MIN somehow, or via index/match+MIN?
Many thanks in advance!!!
Daniel