#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Subtraction

I have been trying to subtract 2 simple numbers. I can do it by entering the
formula =123-111 but would to make a formula where I could use the cell as a
reference (ie H2-H3)

I have also been trying to find the average of 2 numbers. I use
=AVERAGE(H2,H3)
I get #DIV/0! I can't seem to get it to divide by 2.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Subtraction

Both your problems indicate the data in the cells is text rather than TRUE
numbers. Make sure the cells into which you are entering data is formatted
as General before entering the data.
--
Gary''s Student - gsnu200768


"Rookie" wrote:

I have been trying to subtract 2 simple numbers. I can do it by entering the
formula =123-111 but would to make a formula where I could use the cell as a
reference (ie H2-H3)

I have also been trying to find the average of 2 numbers. I use
=AVERAGE(H2,H3)
I get #DIV/0! I can't seem to get it to divide by 2.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Subtraction

First question:

=H2-H3

Second:

You get #DIV?0! probably because the cells are empty. AVERAGE() skips empty cells, so it doesn't count them either which causes
the division by zero.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rookie" wrote in message ...
|I have been trying to subtract 2 simple numbers. I can do it by entering the
| formula =123-111 but would to make a formula where I could use the cell as a
| reference (ie H2-H3)
|
| I have also been trying to find the average of 2 numbers. I use
| =AVERAGE(H2,H3)
| I get #DIV/0! I can't seem to get it to divide by 2.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Subtraction

=H2-H3 to subtract

If =AVERAGE(H2,H3) is giving you #DIV/0! it sounds as if you haven't got
numbers in those cells. Perhaps you've got text? Look at =ISNUMBER(H2)
and =ISTEXT(H2). Perhaps you've got spaces or other non-printing
characters?
--
David Biddulph

"Rookie" wrote in message
...
I have been trying to subtract 2 simple numbers. I can do it by entering
the
formula =123-111 but would to make a formula where I could use the cell as
a
reference (ie H2-H3)

I have also been trying to find the average of 2 numbers. I use
=AVERAGE(H2,H3)
I get #DIV/0! I can't seem to get it to divide by 2.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Subtraction

In reply to my own post, I have found that I can use the AVERAGE formula and
IMSUB on a blank worksheet that I input the numbers manually. However, if I
copy/paste data into a worksheet I can no longer use those functions.
However, I can use ADD. I have checked the format of the cells and it
doesn't seem to matter if I have them formated as "general" or "number."
There's way too much data to input everything manually and that would defeat
the purpose of having excel. Can anyone help me overcome this obstacle?
Thanks.

"Rookie" wrote:

I have been trying to subtract 2 simple numbers. I can do it by entering the
formula =123-111 but would to make a formula where I could use the cell as a
reference (ie H2-H3)

I have also been trying to find the average of 2 numbers. I use
=AVERAGE(H2,H3)
I get #DIV/0! I can't seem to get it to divide by 2.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Subtraction

Format an empty cell as General. Put the number 1 in it. EditCopy. Select your cells with the "numbers". EditPaste Special,
check Multiply.
Now the cells are real numbers. That is, if they don't contain spaces or other invisible characters.
Post back if they do; that can be remedied too.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rookie" wrote in message ...
| In reply to my own post, I have found that I can use the AVERAGE formula and
| IMSUB on a blank worksheet that I input the numbers manually. However, if I
| copy/paste data into a worksheet I can no longer use those functions.
| However, I can use ADD. I have checked the format of the cells and it
| doesn't seem to matter if I have them formated as "general" or "number."
| There's way too much data to input everything manually and that would defeat
| the purpose of having excel. Can anyone help me overcome this obstacle?
| Thanks.
|
| "Rookie" wrote:
|
| I have been trying to subtract 2 simple numbers. I can do it by entering the
| formula =123-111 but would to make a formula where I could use the cell as a
| reference (ie H2-H3)
|
| I have also been trying to find the average of 2 numbers. I use
| =AVERAGE(H2,H3)
| I get #DIV/0! I can't seem to get it to divide by 2.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Subtraction

It still didn't work. I was able to change the numbers but the formulas
didn't work. I
also cannot add these numbers.
"Niek Otten" wrote:

Format an empty cell as General. Put the number 1 in it. EditCopy. Select your cells with the "numbers". EditPaste Special,
check Multiply.
Now the cells are real numbers. That is, if they don't contain spaces or other invisible characters.
Post back if they do; that can be remedied too.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rookie" wrote in message ...
| In reply to my own post, I have found that I can use the AVERAGE formula and
| IMSUB on a blank worksheet that I input the numbers manually. However, if I
| copy/paste data into a worksheet I can no longer use those functions.
| However, I can use ADD. I have checked the format of the cells and it
| doesn't seem to matter if I have them formated as "general" or "number."
| There's way too much data to input everything manually and that would defeat
| the purpose of having excel. Can anyone help me overcome this obstacle?
| Thanks.
|
| "Rookie" wrote:
|
| I have been trying to subtract 2 simple numbers. I can do it by entering the
| formula =123-111 but would to make a formula where I could use the cell as a
| reference (ie H2-H3)
|
| I have also been trying to find the average of 2 numbers. I use
| =AVERAGE(H2,H3)
| I get #DIV/0! I can't seem to get it to divide by 2.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Subtraction

Try ToolsOptionsCalculation tab, check Automatic

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rookie" wrote in message ...
| It still didn't work. I was able to change the numbers but the formulas
| didn't work. I
| also cannot add these numbers.
| "Niek Otten" wrote:
|
| Format an empty cell as General. Put the number 1 in it. EditCopy. Select your cells with the "numbers". EditPaste Special,
| check Multiply.
| Now the cells are real numbers. That is, if they don't contain spaces or other invisible characters.
| Post back if they do; that can be remedied too.
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Rookie" wrote in message ...
| | In reply to my own post, I have found that I can use the AVERAGE formula and
| | IMSUB on a blank worksheet that I input the numbers manually. However, if I
| | copy/paste data into a worksheet I can no longer use those functions.
| | However, I can use ADD. I have checked the format of the cells and it
| | doesn't seem to matter if I have them formated as "general" or "number."
| | There's way too much data to input everything manually and that would defeat
| | the purpose of having excel. Can anyone help me overcome this obstacle?
| | Thanks.
| |
| | "Rookie" wrote:
| |
| | I have been trying to subtract 2 simple numbers. I can do it by entering the
| | formula =123-111 but would to make a formula where I could use the cell as a
| | reference (ie H2-H3)
| |
| | I have also been trying to find the average of 2 numbers. I use
| | =AVERAGE(H2,H3)
| | I get #DIV/0! I can't seem to get it to divide by 2.
|
|
|


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default Subtraction

It was already checked automatic.

"Niek Otten" wrote:

Try ToolsOptionsCalculation tab, check Automatic

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Rookie" wrote in message ...
| It still didn't work. I was able to change the numbers but the formulas
| didn't work. I
| also cannot add these numbers.
| "Niek Otten" wrote:
|
| Format an empty cell as General. Put the number 1 in it. EditCopy. Select your cells with the "numbers". EditPaste Special,
| check Multiply.
| Now the cells are real numbers. That is, if they don't contain spaces or other invisible characters.
| Post back if they do; that can be remedied too.
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "Rookie" wrote in message ...
| | In reply to my own post, I have found that I can use the AVERAGE formula and
| | IMSUB on a blank worksheet that I input the numbers manually. However, if I
| | copy/paste data into a worksheet I can no longer use those functions.
| | However, I can use ADD. I have checked the format of the cells and it
| | doesn't seem to matter if I have them formated as "general" or "number."
| | There's way too much data to input everything manually and that would defeat
| | the purpose of having excel. Can anyone help me overcome this obstacle?
| | Thanks.
| |
| | "Rookie" wrote:
| |
| | I have been trying to subtract 2 simple numbers. I can do it by entering the
| | formula =123-111 but would to make a formula where I could use the cell as a
| | reference (ie H2-H3)
| |
| | I have also been trying to find the average of 2 numbers. I use
| | =AVERAGE(H2,H3)
| | I get #DIV/0! I can't seem to get it to divide by 2.
|
|
|



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subtraction Chart Bunnie Excel Discussion (Misc queries) 8 December 14th 06 02:06 AM
Cell subtraction gudway New Users to Excel 3 May 4th 06 01:31 PM
subtraction formula kaustubhghag Excel Worksheet Functions 1 March 24th 06 12:14 PM
subtraction formula Mart Excel Worksheet Functions 1 February 23rd 06 11:47 AM
Subtraction formula Al Excel Discussion (Misc queries) 6 December 21st 05 08:46 AM


All times are GMT +1. The time now is 05:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"