Multiplying 2 cells based on the value of one of the cells and...

G

Guest

I have a listing of eight different classes with different durations. I then
have several people taking either some or all of the classes. I need to get
a total of all the classes, as well as the total number of class days. I
tried this formulua =IF(E3>0,(E3*C3)+IF(E4>0,(E4*C4)),0), but if there is
only a value in E4 and not in E3, then I do not get any results. Either E3
or E4 could have a one entered, indicated that 1 class will be taken. The
good news is, if there is value in E3 then I am golden, how can I change this
formula to include results when there is nothing in E3 and only result in E4
 
S

Scott Collier

Your formula
=IF(E3>0,(E3*C3)+IF(E4>0,(E4*C4)),0)

Replace the last zero with an IF statement.. so that the new formula is...
=IF(E3>0,(E3*C3)+IF(E4>0,(E4*C4)),IF(E4>0,(E4*C4)),0)

Regards
Scott
 
G

Guest

I was really excited, but an error message appears that says I have too many
arguements???? yikes
 

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