Hi, we are looking to add a summary of some data by way of a textjoin...
But we'd only like the textjoin to be carried out on info where the corresponding qty is > 0.
Sometimes the corresponding qty can also be blank (please also ignore for the textjoin)
Sorry for the rambling, hopefully this maye help make it more a bit clearer...
Thanks for taking a peek
But we'd only like the textjoin to be carried out on info where the corresponding qty is > 0.
Sometimes the corresponding qty can also be blank (please also ignore for the textjoin)
Sorry for the rambling, hopefully this maye help make it more a bit clearer...
textjoin-but-ignore-if-qty-is-zero.xlsm | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Row | Class-1 | Class-1-Qty | Class-2 | Class-2-Qty | Class-3 | Class-3-Qty | TextJoin (Straight, but the info isn't the way we would like it) | TextJoin (Manual!) | Manual Notes (not needed, just to help to explain) | |||
2 | 3 | alpha | 150 | gold | 250 | alpha ; 150 ; gold ; 250 | alpha ; 150 ; gold ; 250 | Alpha and Gold both have accompanying qty's, so include, but skip the blank info in Class-2 | |||||
3 | 4 | beta | 100 | hotel | 500 | mike | 20 | beta ; 100 ; hotel ; 500 ; mike ; 20 | beta ; 100 ; hotel ; 500 ; mike ; 20 | Classes 1,2 & 3 are present, all qty's are > 0, so include all of the info | |||
4 | 5 | charlie | 0 | india | 25 | november | charlie ; 0 ; india ; 25 ; november | india ; 25 | Class 1 is present but qty is 0, Class 2 is blank, so only include the info for Class 3 | ||||
5 | 6 | delta | juliet | 5 | delta ; juliet ; 5 | juliet ; 5 | Only include the info for Class 3 | ||||||
6 | 9 | foxtrot | 25 | kilo | foxtrot ; 25 ; kilo | foxtrot ; 25 | Only include the info for Class 1 | ||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H6 | H2 | =TEXTJOIN(" ; ",TRUE,B2:G2) |
Thanks for taking a peek