Excel function question

Copper Contributor
Spoiler
Spoiler
Spoiler
Hi all experts,

hi all experts,
I want to know how to write a function for below table in result,

There are two column Rcp and Num.

IF Rcp=A or B and Rcp+1= C or D, then Result = Num(Rcp+1)-Num(Rcp+1)=0,

if Rcp+2 =C or D, then Result = Num(Rcp+2)-Num(Rcp+1)

If Rcp+3 = C or D, then Result = Num(Rcp+3)-Num(Rcp+1)

RcpNumResult

A

1NA
B4NA
B6NA
C70
C92
D103
C125
A2NA
B5NA



0 Replies