IF, AND, OR Statements

Copper Contributor

I have a list of clients with 5 columns of different ticket prices.  the amounts are $65, $67.90, $70, $75, and $80.  A 6th column is for the amount to be refunded.  I have 5 cells where I have used Excel to determine the refunded amount owed.  If a person bought a ticket for $65 then they are refunded $58.16.  A ticket for $70 is refunded $62.63, and so on.  Depending on how many tickets a client bought, the ticket column cell could have no number, a 1, or a 2, or a 3 in it.  A client could have a 2 in the $65 column and a 2 in the $75 column.  I am trying to use the IF, AND, OR statements to first look in a cell, does it have a  number, if yes, take that number, multiply the number by the correct refund cell, go to the next column, see if it has a number, if yes multiply it by the correct refund cell, if no, go to the next ticket cell, and so on until all 5 ticket cells are checked.  Once all ticket cells are checked, add up each ticket number and put the total owed in the 6th column amount to be refunded.  For the life of me, I can not get it to come out.  The equation would be in the OWED column.  Is the IF, AND, OR statements the correct to use?

1 Reply

@Blacktop No need for IF, AND, OR. Try the following in H2 and copy it down.

 

=SUMPRODUCT(C2:G2,$J$14:$N$14)