Conditional sum calculation

Conditional sum calculation

Hi everyone,

I have a bit of a brain teaser in a Zoho spreadsheet. I'm attempting to do a sum on a cell if another cell is not empty. It's a very simple calculation, but I'm struggling with getting the condition to work.

If cell B3 is not blank, I want to deduct the amount in B3 from a fixed amount (22000). Essentially it's a running total showing how much is left to accrue. I want to use that formula in C3 and then repeat it down the rows.

I've tried all of the following in cell C3:

IF(B3!null;=SUM(22000-B3);)
=IF(CELL(b;B3);””;(SUM(22000-B3)))
=SUMIF(B3,”<>”,(22000-B3))
=IF(B3=“”,””,(22000-B3))
=IF(B3<>””,(22000-B3),””)

And they all error (with '#NAME!', indicating a typo of some sort in the formula).

Any assistance / pointers appreciated.

Thanks in advance,

James



      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          • Sticky Posts

          • Moving out announcement - Zoho Sheet!

            Greetings!   As a way to better interact with our users, the Zoho Sheet team is moving our forum out of the Zoho Docs community and in to its own separate space. This is the first step in creating a stand-alone community for Zoho Sheet. ​ This will help us fit all your queries and posts about Sheet into one community and ensure you receive our forum announcements in a timely fashion. There are also plans down the line to kick-start sessions like "Ask the Experts" and "Tips and Tricks," so make sure to

          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ








                                ご検討中の方