dark_horizon
New Member
Hello friends,
Following is a small block of data. I need to write a formula, such that
Output in B1
If A1="All Segments",
Combine A2, A3, A4, A5 (into B1).....till another "All Segments" is encountered
If A1<>"All Segments", return '0'
[pre]
[/pre]
Any help would be appreciated. Thanks in anticipation.
Following is a small block of data. I need to write a formula, such that
Output in B1
If A1="All Segments",
Combine A2, A3, A4, A5 (into B1).....till another "All Segments" is encountered
If A1<>"All Segments", return '0'
[pre]
Code:
X A B
1 All Segments India, Outside India
2 India 0
3 Outside India 0
4 All Segments Formalin, Methanol, Siliguri
5 Formalin 0
6 Methanol 0
7 Siliguri 0
8 All Segments Domestic, Exports
9 Domestic 0
10 Exports 0
11 All Segments
12 Cattle & Poultry Feed
13 Poultry
14 Sugar & Related Activities
15 Sugar Trading
16 All Segments
17 Insulation
18 Trading
Any help would be appreciated. Thanks in anticipation.