Hi All
I need help in writing an If or Else statement for the following data.
Have 2 variables (Store Number and Type):
Example of layout:
Store Number Type
123456789 R
123456789 S
987654321 S
What I want the statement to be able to do is if the storenumber has both a row with R and S, to pick the row with R. Alternatively if there is only one entry per storenumber like the 987654321 then to pick the type S for that.
Thanks in advance
Ricky
I need help in writing an If or Else statement for the following data.
Have 2 variables (Store Number and Type):
Example of layout:
Store Number Type
123456789 R
123456789 S
987654321 S
What I want the statement to be able to do is if the storenumber has both a row with R and S, to pick the row with R. Alternatively if there is only one entry per storenumber like the 987654321 then to pick the type S for that.
Thanks in advance
Ricky