Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default I need to total col, but pick up number in other col. if not 0

I have two columns of figures i.e. Col. G has figures in each cell and have
totalled them and averaged them. In Col. F most of the cells have 0, but if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default I need to total col, but pick up number in other col. if not 0

=IF(F1<0,F1,G1)

If F1 is less than or greater than 0, F1, else G1.

Dave
--
Brevity is the soul of wit.


"katie" wrote:

I have two columns of figures i.e. Col. G has figures in each cell and have
totalled them and averaged them. In Col. F most of the cells have 0, but if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default I need to total col, but pick up number in other col. if not 0

If I understand........

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=SUM(IF(F1:F10<0,F1:F10,G1:G10))

=AVERAGE(IF(F1:F10<0,F1:F10,G1:G10))

Biff

"katie" wrote in message
...
I have two columns of figures i.e. Col. G has figures in each cell and have
totalled them and averaged them. In Col. F most of the cells have 0, but
if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 130
Default I need to total col, but pick up number in other col. if not

Thank you so much. I got it to work perfectly.

"Biff" wrote:

If I understand........

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not just
ENTER):

=SUM(IF(F1:F10<0,F1:F10,G1:G10))

=AVERAGE(IF(F1:F10<0,F1:F10,G1:G10))

Biff

"katie" wrote in message
...
I have two columns of figures i.e. Col. G has figures in each cell and have
totalled them and averaged them. In Col. F most of the cells have 0, but
if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default I need to total col, but pick up number in other col. if not

You're welcome. Thanks for the feedback!

Biff

"katie" wrote in message
...
Thank you so much. I got it to work perfectly.

"Biff" wrote:

If I understand........

Entered as an array using the key combination of CTRL,SHIFT,ENTER (not
just
ENTER):

=SUM(IF(F1:F10<0,F1:F10,G1:G10))

=AVERAGE(IF(F1:F10<0,F1:F10,G1:G10))

Biff

"katie" wrote in message
...
I have two columns of figures i.e. Col. G has figures in each cell and
have
totalled them and averaged them. In Col. F most of the cells have 0,
but
if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default I need to total col, but pick up number in other col. if not 0

I'd make another column and then put a formula like this in it:
=IF(F1=0,G1,F1) and copy it down the length of your data, it will look at F,
if it is a zero it will put the value of G in the cell, if not it will put
the value of F in the cell, you can then total and average that column.

"katie" wrote:

I have two columns of figures i.e. Col. G has figures in each cell and have
totalled them and averaged them. In Col. F most of the cells have 0, but if
a cell is populated with a figure other than 0, then I need to use that
figure instead of the figure in Row G.

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
TOTAL NUMBER OF ENTRIES rostroncarlyle Excel Worksheet Functions 5 December 16th 05 05:21 PM
Add total number of rows (text) in a column rostroncarlyle Excel Worksheet Functions 1 December 15th 05 06:25 AM
Counting the total number of cells with specified condition(freque Kelvin Excel Discussion (Misc queries) 2 July 10th 05 12:22 PM
How do I pick a number from a list in Excel? pugsly8422 Excel Worksheet Functions 4 January 3rd 05 06:07 PM
a number as a percentage out of a total solskinn Excel Worksheet Functions 3 December 8th 04 06:23 PM


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