How to return mulitple values based on the contents of another cel

  • Thread starter Thread starter sherlockgr
  • Start date Start date
S

sherlockgr

For example cell A1 could contain values of 1 through 50.
If the Value is 1, 4, 7, 10 I want to return the value of A in cell A2
If the Value is 2, 5, 8, 11 I want to return the value of B in cell A2
If the Value is 3, 6,9, 12 I want to return the value of C in cell A2

Thanks for your help!
 
=CHAR(MOD(A1-1,3)+65)

or if you want to validate between 1-50
=IF(AND(A1>=1,A1<=50),CHAR(MOD(A1-1,3)+65),"x")

Regards,
Peter T
 
Back
Top