Forum Discussion

SantiViMa's avatar
SantiViMa
New Member
3 years ago

Assign Table Value based on min and max values

Hello everyone,

 

On the one hand I have a table with the volume of a series of packages that I read from one source:

ID_PackageVolume[m3]
92611,87
10324,56
12748,69
124830,02
121517,14
126645,32

 

On the other hand I have different cattegories of packages based on minium and maximum volumes:

Volume_MinVolume_MaxPackage_Type_per_Volume
02,5< 2,5 M3
2,57,52,5-7,5 M3
7,5157,5-15 M3
153015-30 M3
305030-50 M3
5099999>50 M3

 

Is there any way to include the "Package_Type_per_volume" info in the first table without using "IF" conditions? This second table can be easily modified and if I use IF conditions I will need to modify it each time I change the scale. The idea would be to get this table:

ID_PackageVolume[m3]Package_Type_per_Volume
92611,877,5-15 M3
10324,562,5-7,5 M3
12748,697,5-15 M3
124830,0230-50 M3
121517,1415-30 M3
126645,3230-50 M3

 

Thanks in advance!