PC Review


Reply
Thread Tools Rate Thread

Checkbox sum

 
 
Fred's
Guest
Posts: n/a
 
      15th Oct 2007
Hi,

I need to know how can I make a sum with checkboxes

Example:

Containers: caxu125414, quanity of pairs: 220

Containers: chjcu25455, quanity of pairs: 5620

And next to the quanity cell, I've a checkbox (True or False)

Now, how and which formula can I use to make a sum, when the ckeckbox
is at TRUE?

 
Reply With Quote
 
 
 
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      16th Oct 2007
Hi Fred,

Create a linked cell for the checkbox anywhere on the worksheet and sum the
values if the cell is true otherwise put nothing (2 double quotes like this
"") in the cell.

Example assuming A1 is the linked cell and D24 is the range to sum.

=IF(A1=TRUE,SUM(D214),"")

If statement which tests for True or False can be shortened to this:-

=IF(A1,SUM(D214),"")

Regards,

OssieMac



"Fred's" wrote:

> Hi,
>
> I need to know how can I make a sum with checkboxes
>
> Example:
>
> Containers: caxu125414, quanity of pairs: 220
>
> Containers: chjcu25455, quanity of pairs: 5620
>
> And next to the quanity cell, I've a checkbox (True or False)
>
> Now, how and which formula can I use to make a sum, when the ckeckbox
> is at TRUE?
>
>

 
Reply With Quote
 
=?Utf-8?B?T3NzaWVNYWM=?=
Guest
Posts: n/a
 
      16th Oct 2007
Hi again Fred,

Had another look at this and not sure if I got your meaning correct. If you
meant that you want to sum each value that has a checkbox beside it then you
need a linked cell beside each value for the associated checkbox. Assuming
that the range containing the values is D214 then the linked cells could be
C2:C14. The forumla would then be:-

=SUMIF(C2:C14,TRUE,D214)

The linked cells can be over to the right of your data out of sight just so
long as they line up with the range to be summed.

Hope one of the answers is what you want.

Regards,

OssieMac




"OssieMac" wrote:

> Hi Fred,
>
> Create a linked cell for the checkbox anywhere on the worksheet and sum the
> values if the cell is true otherwise put nothing (2 double quotes like this
> "") in the cell.
>
> Example assuming A1 is the linked cell and D24 is the range to sum.
>
> =IF(A1=TRUE,SUM(D214),"")
>
> If statement which tests for True or False can be shortened to this:-
>
> =IF(A1,SUM(D214),"")
>
> Regards,
>
> OssieMac
>
>
>
> "Fred's" wrote:
>
> > Hi,
> >
> > I need to know how can I make a sum with checkboxes
> >
> > Example:
> >
> > Containers: caxu125414, quanity of pairs: 220
> >
> > Containers: chjcu25455, quanity of pairs: 5620
> >
> > And next to the quanity cell, I've a checkbox (True or False)
> >
> > Now, how and which formula can I use to make a sum, when the ckeckbox
> > is at TRUE?
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checkbox Control - How to display a true or false value in the cellcontaining a checkbox Dave K Microsoft Excel Discussion 1 8th Sep 2010 08:31 PM
Count of records where checkbox 1 is unchecked, checkbox 2 is chec EllenM Microsoft Access Reports 1 24th Mar 2010 03:23 PM
Coordinate status of checkbox on form to checkbox on multiple reco DanRoy Microsoft Access 0 4th Sep 2008 09:18 PM
DataGrid and embeded Checkbox..How to find if checkbox clicked =?Utf-8?B?RG90TmV0RGV2?= Microsoft ASP .NET 1 6th Oct 2006 05:11 PM
Master-Detail Datagrid -checkbox (once tick the checkbox, all the child checkbox is ticked) Agnes Microsoft VB .NET 0 16th Aug 2004 11:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.