Formula Error

G

Guest

I’m trying to create a formula and I’m having a little problem getting it to
work correctly.

Here’s the formula:
=COUNTIF(G4:G197,"Y")+(F4:F197)-500

If anything in G4:G197 = Y
I want it to add the numbers from (F4:F197) and subtract it from 500

G5____F5________G6______F6______G7______F7
Y_____$50________ Y _____$100_______ N _____$200

Total $150-$500 =$350

Any help would be appreciated.
 
G

Guest

=500-SUMIF(G4:G197,"Y",F4:F197), or if you want a negative result (using your
example) =SUMIF(G4:G197,"Y",F4:F197)-500
 

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

Similar Threads

FORMULA 5
Formula using array to find embedded value 9
Help with a formula 2
automating use of complicated formula 4
If formula 5
SUMPRODUCT help needed 4
SumIFS Cell 1
3d Formula Verification Question 2

Top