Problem with SUM and AVERAGE functions...

hallingh

Well-known Member
Joined
Sep 11, 2010
Messages
769
Hi all,

I have an interesting problem. I am working with an Excel sheet that is only using native excel functions (no vba involved.) On one of the sheets, I am using the Sum function and the average function. The values which I'm summing and averaging have been imported from an infopath form to another Excel sheet, and then copied into the sheet I'm working with.

When I put this into a cell:

Code:
=AVERAGE(Q51:AB51)

It gives me a Div/0 error. When I use this:

Code:
=SUM(Q51:AB51)

it just gives me 0 as the answer.

The cells Q51:AB51 are using the index function to retrieve the values from another sheet, but are showing the values I want, all of which are integers between 1 and 4.

Does anyone have any idea why these functions would not be working for me?

I'm completely lost. Also, I have used this sheet before, and imported previous values the same way through infopath. The SUM and AVERAGE functions are working as intended on the values that have already been entered into the sheet.

THanks for the looks and for any help you can give me.

Hank
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
It sounds like you have numbers stored as text. Try typing 0 into an empty cell, copy it, select your numbers, Edit > Paste Special, check Add and click OK.
 
Upvote 0
Nevermind, I got it. I imported the numbers from infopath onto a different sheet, and even though the cells were formatted as numbers, it was still storing the number as text when it got imported.
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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