ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   row sum - 9 cells change values to 1 and add the "1" (https://www.excelbanter.com/excel-programming/334610-row-sum-9-cells-change-values-1-add-1-a.html)

Anvil22

row sum - 9 cells change values to 1 and add the "1"
 
I am trying to loot at the values in a row of cells, chang them to 1 and add
the "1"
I have tried variations of the following.
c5=5, c6=9
if(c5)1,1,0, if(c6)1,1,0, sum(c5:c6)
individuallly the give me the correct results. 1. But the results I am
looking for should be 2.

Can anyone help with the formuls or tell me what I am doing incorrectly?

Thanks Dick

Norman Jones

row sum - 9 cells change values to 1 and add the "1"
 
Hi Dick,

C5 =5
C6 =9

D5 =SUM(C51,C61) ===== 2

---
Regards,
Norman



"Anvil22" wrote in message
...
I am trying to loot at the values in a row of cells, chang them to 1 and
add
the "1"
I have tried variations of the following.
c5=5, c6=9
if(c5)1,1,0, if(c6)1,1,0, sum(c5:c6)
individuallly the give me the correct results. 1. But the results I am
looking for should be 2.

Can anyone help with the formuls or tell me what I am doing incorrectly?

Thanks Dick




Anvil22

row sum - 9 cells change values to 1 and add the "1"
 
Hi Norm,
Thank you - IOt worked liek a charm. I was so straigh forward. I have to
make one modification. I needed the count to include (1), so I change you
suggestion to c5=1,
and it worked.

thanks a again.
Dick

"Norman Jones" wrote:

Hi Dick,

C5 =5
C6 =9

D5 =SUM(C51,C61) ===== 2

---
Regards,
Norman



"Anvil22" wrote in message
...
I am trying to loot at the values in a row of cells, chang them to 1 and
add
the "1"
I have tried variations of the following.
c5=5, c6=9
if(c5)1,1,0, if(c6)1,1,0, sum(c5:c6)
individuallly the give me the correct results. 1. But the results I am
looking for should be 2.

Can anyone help with the formuls or tell me what I am doing incorrectly?

Thanks Dick






All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com