Hi,
{if(G2Q00001_SQ001.NAOK=='Y' && G2Q00001_SQ002.NAOK=='Y' && G2Q00001_SQ003.NAOK=='Y',
(if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A1' && G2Q00002_SQ003=='A1',0.8 + 0.95 + 0.95,
if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A1' && G2Q00002_SQ003=='A2',0.8 + 0.95,
if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A2' && G2Q00002_SQ003=='A1',0.8 + 0.95,
if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A2' && G2Q00002_SQ003=='A2',0.8,
if(G2Q00002_SQ001=='A2' && G2Q00002_SQ002=='A1' && G2Q00002_SQ003=='A1',0.95 + 0.95,
if(G2Q00002_SQ001=='A2' && G2Q00002_SQ002=='A1' && G2Q00002_SQ003=='A2',0.95,
if(G2Q00002_SQ001=='A2' && G2Q00002_SQ002=='A2' && G2Q00002_SQ003=='A1',0.95,0)))))))),'')}
supposing that
G2Q00002_SQ001=='A1' adds 0.8,
G2Q00002_SQ002=='A1' adds 0.95,
G2Q00002_SQ003=='A1' adds 0.95
you can shorten to
{if(G2Q00001_SQ001.NAOK=='Y' && G2Q00001_SQ002.NAOK=='Y' && G2Q00001_SQ003.NAOK=='Y',
sum(if(G2Q00002_SQ001=='A1',0.8,0),if(G2Q00002_SQ002=='A1',0.95,0),if(G2Q00002_SQ003=='A1',0.95,0)),"")}
So maybe you can shorten the other equations in the same way.
{if(G2Q00001_SQ001.NAOK=='Y' && G2Q00001_SQ002.NAOK=='Y' && G2Q00001_SQ003.NAOK!='Y',
(if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A1',1.56 + 1.78,
if(G2Q00002_SQ001=='A1' && G2Q00002_SQ002=='A2',1.56,
if(G2Q00002_SQ001=='A2' && G2Q00002_SQ002=='A1',1.56,0)))),'')}
And here I should have thought that
G2Q00002_SQ001=='A1' adds 1.56,
G2Q00002_SQ002=='A1' adds 1.78
But then the third line should be
if(G2Q00002_SQ001=='A2' && G2Q00002_SQ002=='A1',1.78,0)))),'')}
Of course I have not the least idea of your calculation and so I do not know if it is a typo.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.