I've got a string of text which are a grouping of circuit numbers. For instance, "2,4,6,8"
Each of these are independent circuits with independent values (ampacities).
I have these values all described in a table wherein one column is the CKT # (2) and the column to its right is the ampacity (20).
So if I have circuits 2, 4, 6, and 8, and they have ampacities of 20, 25, 30, & 40 respectively, I want Excel to be able to look at the value for "2" and replace it with "20", and 4, "25", 6, "30", and so on.
So I'd start with "2,4,6,8" and end with "20,25,30,40"
Is there a way to do this?
Thank you!
A
and then a value to return in columnB
. Then, in my first sheet, I enter the number I want to fetch in columnA
, and in columnB
the value is returned by the function:=IFERROR(VLOOKUP(A1,Database!A:B,2,TRUE)," ")
(For B1, and so on down the page)=INDEX({20,25,30,40},1,MATCH(A1,{2,4,6,8},0))
?