Hello
I am trying to write a function that checks to make usre that 2 adjacents cells (columns) are not empty. If they are just do nothing otherwise it then checks to see if there is a 'x' or 'X' in the next colum. Depending on the outcomre of that, it sums the first 2 cells (non blank).
I have made 2 separate functions. the first one checks to make sure the 2 cells aren't empty, the second checks to see if there is an 'x' in the cell and calculates the sum.
The cell which contains an x is much like a checkbox.
here are my 2 functions:
checks to see if 2 cells empty
checks to see if 'checkbox' contains an 'x' and output the sum
what i need is to comine these 2 functions into 1 so as long as the first 2 columns contain numbers, it calculates 1 of 2 sums
Any ideas how to comine these?
I am trying to write a function that checks to make usre that 2 adjacents cells (columns) are not empty. If they are just do nothing otherwise it then checks to see if there is a 'x' or 'X' in the next colum. Depending on the outcomre of that, it sums the first 2 cells (non blank).
I have made 2 separate functions. the first one checks to make sure the 2 cells aren't empty, the second checks to see if there is an 'x' in the cell and calculates the sum.
The cell which contains an x is much like a checkbox.
here are my 2 functions:
checks to see if 2 cells empty
Code:
=IF(AND(ISBLANK(E18),ISBLANK(F18)),"",SUM(E18*F18))
Code:
=IF((OR(G2="x",G2="X")), SUM((E2*F2)/1.2),SUM((E2*F2))
what i need is to comine these 2 functions into 1 so as long as the first 2 columns contain numbers, it calculates 1 of 2 sums
Any ideas how to comine these?