Hello all,
I hope the thread title makes it clear what kind of formula I need. I'm trying to develop a spreadsheet for book orders. I have a list of courses and accompanying textbooks for which I need quantities for major courses all students attend together, and minor courses that they attend separately. I have a separate list of students and which major and minor courses they have chosen.
My quantity uses a countif formula to count how many copies of major and minor course textbooks I will need:
Major courses in Column F of the students list:
Minor coursesin Column G of the students list:
then another one which adds up the quantity with an additional copy for the instructor and subtracts any copies we already have in stock:
To order (quantity + instructor copy - in stock):
How do I edit the countif formula to result in 0 when an instructor decides they will use other materials instead of a set textbook? Or is there another formula which is better suited to what I need? Thank you in advance!
I hope the thread title makes it clear what kind of formula I need. I'm trying to develop a spreadsheet for book orders. I have a list of courses and accompanying textbooks for which I need quantities for major courses all students attend together, and minor courses that they attend separately. I have a separate list of students and which major and minor courses they have chosen.
My quantity uses a countif formula to count how many copies of major and minor course textbooks I will need:
Major courses in Column F of the students list:
Excel Formula:
=COUNTIF($F$20:$F$42;"Computer Science")
Excel Formula:
=COUNTIF($G$20:$G$42;"Business")
then another one which adds up the quantity with an additional copy for the instructor and subtracts any copies we already have in stock:
To order (quantity + instructor copy - in stock):
Excel Formula:
=IF(I5+J5-K5<0;0;I5+J5-K5)
How do I edit the countif formula to result in 0 when an instructor decides they will use other materials instead of a set textbook? Or is there another formula which is better suited to what I need? Thank you in advance!