Combining two formulas

E

edwardpestian

I have two formulas. The first one determines what day of the week i
is and multiplies that cell by a percentage.

=IF(WEEKDAY(R6,2)<5,Data!CY8*1.13,Data!CY8*1.23).

This formula works fine if it is a positive number. It basicall
increases the number by the respective percentage.

However, if the number is negative, I get the negative number increase
further into the negative. What I want it to do is decrease.

For example. 150,000 would return 184,500 and -150,000 woul
return115,500. I have created a formula that accomplishes what I need
but I do not know how to implement with the above formula.

=IF(Data!CY8<0,(Data!CY8)*1.23)-(ABS(Data!CY8))+(Data!CY8),Data!CY8*1.23)

Thanks in advance.

E
 
E

edwardpestian

Here's what I came up with:

=IF(WEEKDAY(R6,2)<5,(IF(Data!CZ8<0,(ABS(Data!CZ8)*Data!DK6)-(ABS(Data!CZ8))+(Data!CZ8),Data!CZ8*Data!DK6)),(IF(Data!CZ8<0,(ABS(Data!CZ8)*Data!DK7)-(ABS(Data!CZ8))+(Data!CZ8),Data!CZ8*Data!DK7)))

EP
 
G

Guest

I'm not entirely certain of what you are trying to achieve but I think this
is the formula you are after:

=IF(WEEKDAY(R6,2)<5,IF(Data!CY8<0,(Data!CY8*1.23)-ABS(Data!CY8)+Data!CY8,Data!CY8*1.13),Data!CY8*1.23)

Note, in your example you didn't have the correct number of ( ) so I have
put in those that I think are right. You may need to change this to get the
correct formula.

HTH

Ian
 
G

Guest

I've looked again and I now see what you are doing. Does this work? It
looks OK to me.

Ian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top