I'm trying to specify a certain number based off of column G where as anything "ge-0/0/0" through "ge-0/0/23" will return a value and "ge-0/0/24" through "ge-0/0/47" will return a different value.
I was able to figure out how to return a value with this formula: =IF(ISNUMBER(SEARCH("ge-0",G2)),12, IF(ISNUMBER(SEARCH("ge-1",G2)),14,IF(ISNUMBER(SEARCH("ge-2",G2)),16,IF(ISNUMBER(SEARCH("ge-3",G2)),18,IF(ISNUMBER(SEARCH("ge-4",G2)),13,IF(ISNUMBER(SEARCH("ge-5",G2)),20, ""))))))
But i would like to split each "ge-*" into two separate values for being able to calculate cable proper cable lengths. I tried =IF(AND(ISNUMBER(SEARCH("ge-0",G2)),G2>="*0",G2<="*23"),6,"") but it did not return the correct value.
Thanks.
I was able to figure out how to return a value with this formula: =IF(ISNUMBER(SEARCH("ge-0",G2)),12, IF(ISNUMBER(SEARCH("ge-1",G2)),14,IF(ISNUMBER(SEARCH("ge-2",G2)),16,IF(ISNUMBER(SEARCH("ge-3",G2)),18,IF(ISNUMBER(SEARCH("ge-4",G2)),13,IF(ISNUMBER(SEARCH("ge-5",G2)),20, ""))))))
But i would like to split each "ge-*" into two separate values for being able to calculate cable proper cable lengths. I tried =IF(AND(ISNUMBER(SEARCH("ge-0",G2)),G2>="*0",G2<="*23"),6,"") but it did not return the correct value.
Thanks.
Last edited by a moderator: