Hello.. I'm trying to figure out how to add a formula in 'Division Code' column that would vary based on the value in the 'Program' column. For example, if under 'Program' it contains either WH or ARM input this formula under Division code
if under Program' it contains PA then use this code
Trying to intertwine else statements and formulas always seems to confuse me. Thank you in advance
VBA Code:
=IF(ISERROR(VLOOKUP(H2,'Echelon Table'!A:B,2,FALSE))," ",VLOOKUP(H2,'Echelon Table'!A:B,2,FALSE))
VBA Code:
=IF(ISERROR(VLOOKUP(E3,'PA Extract'!E:G,3,FALSE))," ",VLOOKUP(E3,'PA Extract'!E:G,3,FALSE))
ID Number | Program | Group Code | Group Category | Control Number | Dept Code | Division Code | Group |
5110001622205 | WH | B0000000000001132677 | GROUP 2 | ||||
5110001622205 | ARM | B0000000000001132677 | GROUP 2 | ||||
5110001622205 | ARM | B0000000000001132677 | GROUP 1 | ||||
5110001867107 | WH | D76302 | CHISEL | B0000000000001129817 | GROUP 3 | ||
5110001867107 | WH | D76302 | CHISEL | B0000000000001129817 | GROUP 3 | ||
5110001867107 | PA | D76302 | CHISEL | B0000000000001129817 | GROUP 3 | ||
5110001867107 | WH | D76302 | CHISEL | B0000000000001129817 | GROUP 3 | ||
5110001867107 | PA | D76302 | CHISEL | B0000000000001129817 | GROUP 3 |
Last edited: