View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Raghu Raghu is offline
external usenet poster
 
Posts: 14
Default Regarding Compare and SUm the Range of Cells

Hi
I have a range of data in Cloumn B2:B6
48
59
40
42
32


Now in the Column B7 i want to compare the data in each every cell if that
data is greater than 40 then it must substract from 40 and display in B7
For example : B2(i.e. 48) 40 so it must substract 48-40 =8
B3(i.e 59)40 so it must substract 59-40 = 19
B4 (i.e. 40) = 40 so there must not be any action on
this cell value

so the value in B7 must be 8+19+2=29

Can anyone suggest me how to use this formula.