Quantcast
Channel: Data Preparation & Blending discussions
Viewing all articles
Browse latest Browse all 4999

Repeating Macro for Multiple Formulas

$
0
0

Hi All!

 

I am struggling to figure out how to automate the need to create multiple formulas.  My current data looks as follows:

 

ProjectSIGNAL ASIGNAL BSIGNAL C
A101
B000
C101
D100

 

I will need to create multiple formulas for each 'Signal'.  For example if I was to do this manually I would created the following formulas for Project A:

1) "SIGNAL AB" = If [SIGNAL A]+[SIGNAL B]=2 THEN 1 ELSE 0

2)  "SIGNAL AC" = If [SIGNAL A]+[SIGNAL C]=2 THEN 1 ELSE 0

3)  "SIGNAL ABC" = If [SIGNAL A]+[SIGNAL B]+[SIGNAL C]=3 THEN 1 ELSE 0

 

I need to repeat this for each project and each 'Signal' Test.  Is there a simple way to set this up with a Macro?

 

Any help would be much appreciated!!

 


Viewing all articles
Browse latest Browse all 4999

Trending Articles