=ModuleNum&"."&SectionNum&"."&Sub1_SectionNum&"."&Sub2_SectionNum&"."&Sub3_SectionNum&"."&Sub4_SectionNum&"."&Sub5_SectionNum&"."&Sub6_SectionNum
IF SectionNum >= 0
THEN &"."&Sub1_SectionNum
IF Sub1_SectionNum != Null
THEN &"."&Sub2_SectionNum
IF Sub2_SectionNum != Null
THEN &"."&Sub3_SectionNum
IF Sub3_SectionNum != Null
THEN &"."&Sub4_SectionNum
IF Sub4_SectionNum != Null
THEN &"."&Sub5_SectionNum
IF Sub5_SectionNum != Null
THEN &"."&Sub6_SectionNum
I have a formula like the one above, and a lot of times it is giving me results like "10.0....." instead of what I'd like 10.0 or 2.4.5.6.1.3.7.1. I would like to make it conditional to handle both cases and I think this will require a nested conditional formula. I need some assistance with the nesting.
For example, I was able to write the formula
=ModuleNum&"."&IF(SectionNum>=0,SectionNum,"F")&"."&IF(Sub1_SectionNum>0,Sub1_SectionNum,"F")&"."&IF(Sub2_SectionNum>0,Sub2_SectionNum,"F")&"."&IF(Sub3_SectionNum>0,Sub3_SectionNum,"F")&"."&IF(Sub4_SectionNum>0,Sub4_SectionNum,"F")&"."&IF(Sub5_SectionNum>0,Sub5_SectionNum,"F")&"."&IF(Sub6_SectionNum>0,Sub6_SectionNum,"F")
which adds the conditional portion, but you will see that if the condition is not greater than 0, it will show .F instead of nothing. I would like for if the condition is not greater than 0 for the statement to stop evaluating.
I think I want something like this,
=ModuleNum & IF(SectionNum>=0,&"."&SectionNum,"F")
But I can't seem to get it to evaluate in my xlsx
Much Appreciated!