• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

IF Statement Values

Sally Templin

New Member
Column C has a drop box list. Column D has an If statement that links to Column C. i.e., Column C = Cash / Column D displays 50.

Why won't numbers in Column D that are linked to Column C sum in cell J3? Numbers manually input will work.

Thank you.
 

Attachments

  • Day Sheet Template_Charge Formula.xlsx
    29.7 KB · Views: 4
Hello Sally Templin, and welcome to the forum :awesome:

Numbers in your formula are stored as TEXT VALUES due to "number":
=IF(C3="Cash","50",IF(C3="Cash Family","50",IF(C3="Cash HS 20","20",IF(C3="Cash FF","0",IF(C3="Cash HS 25","25",IF(C3="Cash M","30",IF(C3="Cash MR M","30",IF(C3="Cash PP","0",IF(C3="Cash Student","30",IF(C3="CHUSA","40",IF(C3="FREE","0")))))))))))

Will not be summed, try instead:
=IF(C3="Cash",50,IF(C3="Cash Family",50,IF(C3="Cash HS 20",20,IF(C3="Cash FF",0,IF(C3="Cash HS 25",25,IF(C3="Cash M",30,IF(C3="Cash MR M",30,IF(C3="Cash PP",0,IF(C3="Cash Student",30,IF(C3="CHUSA",40,IF(C3="FREE",0)))))))))))

Or since you have already maintained a lookup table, I suggest use the simple vlookup or index/match formula, for example use any of the following in D3:

=IFERROR(VLOOKUP(C3,$O$3:$P$14,2,FALSE),"")

=IFERROR(INDEX($P$3:$P$14,MATCH(C3,$O$3:$O$14,0)),"")

Copy down...

Regards,
 
Back
Top