INCORRECT ARGUMENT ERROR

craigwaco
craigwaco ✭✭✭
edited 01/19/24 in Formulas and Functions

Hi all,

I have a problem with an #INCORRECT ARGUMENT.

I have 4 columns:

  1. Cost. (dollar value)
  2. Execute (Checkbox) and
  3. Funding Source Primary (Pull Down).
  4. Funding - GF

If column 2 is checked, and column 3 = "General Fund", I'd like the total to go in column 4.

This is my formula

=(IF(AND(Execute@row = 1, [Funding Source Primary]@row = "General Fund", Cost@row, " ")))


But it doesn't work. What Am I doing wrong?

Best Answer

  • craigwaco
    craigwaco ✭✭✭
    Answer ✓

    Never mind. I got it.

    wrong formula:

    =(IF(AND(Execute@row = 1, [Funding Source Primary]@row = "General Fund", Cost@row, " ")))

    correct formula:

    =(IF(AND(Execute@row = 1, [Funding Source Primary]@row = "General Fund"), Cost@row, ""))

Answers

  • craigwaco
    craigwaco ✭✭✭
    Answer ✓

    Never mind. I got it.

    wrong formula:

    =(IF(AND(Execute@row = 1, [Funding Source Primary]@row = "General Fund", Cost@row, " ")))

    correct formula:

    =(IF(AND(Execute@row = 1, [Funding Source Primary]@row = "General Fund"), Cost@row, ""))

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!