Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Skip
 
Posts: n/a
Default Two functions in one cell???

I want to get an average of a column of numbers, and then round it
off.,
Can I put two functions in a single cell?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Two functions in one cell???

Yes

=round(average(range),2)

or whatever

You can combine many functions, the main thing to remember is you can
only nest brackets up to 7 levels or Excel will refuse to handle it.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Two functions in one cell???

You can do what you are asking. Here are 2 approaches:

With values in A1:A10

Calculate the average and round the result:
A11: =ROUND(AVERAGE(A1:A10),2)

Round each number before calculating the average (using an array formula*):
A11: =AVERAGE(ROUND(A1:A10,2))

*Note: For array formulas, hold down [Ctrl] and [Shift] when you press
[Enter].

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Skip" wrote:

I want to get an average of a column of numbers, and then round it
off.,
Can I put two functions in a single cell?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Skip
 
Posts: n/a
Default Two functions in one cell???

Sure does, thanks.
Skip

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove
 
Posts: n/a
Default Two functions in one cell???

Ron Coderre wrote...
You can do what you are asking. Here are 2 approaches:

With values in A1:A10

Calculate the average and round the result:
A11: =ROUND(AVERAGE(A1:A10),2)


OK.

Round each number before calculating the average (using an array formula*):
A11: =AVERAGE(ROUND(A1:A10,2))

....

Not OK. The average of the rounded values won't necessarily be rounded
to 2 decimal places, and it'll produce noticeable roundoff error more
often.

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Combine functions into one cell [email protected] Excel Worksheet Functions 2 August 16th 05 07:09 PM
How can I copy cell formats in functions? Twitty Kitty Excel Worksheet Functions 3 July 24th 05 12:26 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
How to use functions in one cell to get text in another cell rlb Excel Worksheet Functions 8 May 5th 05 08:37 PM


All times are GMT +1. The time now is 02:23 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"