If function problem

_ratS

New Member
Joined
Jun 29, 2011
Messages
12
Hi, this might be a n00bie question, but:

how do i select multiple cells for range criteria?... and i dont mean from i3:i8 but what i mean is logical test being checked on cells like that:

"for cells B29;F30;E31 check whether the value is 1 or 0 and then count it"

actually what i want is:
if b29 = 1 , then add 500 to selected field (E28 = +500)
if f30 = 1 , then add another 500 to selected field (E28 = +500 = 1000)
if e31 = 1 , then add another 500 to selected field (E28 = 1500)

BUT if i only could check multiple cells for their value being 1 or 0 i could count the "1"'s and thenjust multiply it with the number i want.

So anyone got any idea how to do it?
Thx
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
If the cells have only a 1 or 0, then this will count the 1s in cells B29, F30, E31
=SUM(B29,F30,E31)

Or just put this in E28
=SUM(B29,F30,E31)*500
 
Upvote 0
oh thanks thats great yes.

but what if i want another field to subtract if its value is true?

so:
=SUM(B29,F30,E31)*500

and

if E32 = 1 then subtract some number

somthing like
=SUM(B29,F30,E31)*500; IF(E32=1;-80)

HOW TO WRITE THIS?
 
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top