# Auto divided

#### lsearcey

##### Board Regular
I hope you can help.
I have the averages in column J that are calculated from the values in C,D and E but if one is blank it needs to be divided by one or two automatically instead of changing it manually in column J.
For example column C and D have a value but E is empty so C and D are totaled and divided by two. Is their a formula that can do that auto matically?

Thank You
Caleb SCHOOL RECORD 2005.xls
BCDEFGHIJ
9Math1003100490Math90
109090
11English1001100247English47
1294
2nd Quarter

### Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi

Try the AVERAGE function.

=average(c12:e12)

Tony

works great thank you!

lsearcey

By the way, your sheet will look better on the board and be easier to read without all those things everywhere. You can avoid those by clicking the 'View Source' button in the HTML Maker (rather than the 'Please click this button to send the source to the clipbord' button) and then selecting all the resulting code to copy to your post.

Replies
8
Views
142
Replies
5
Views
239
Replies
5
Views
225
Replies
5
Views
170
Replies
1
Views
331

1,214,753
Messages
6,121,318
Members
449,026
Latest member
Nireeksha Shetty

### 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?

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