Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TOTAL NUMBER OF ENTRIES | Excel Worksheet Functions | |||
Add total number of rows (text) in a column | Excel Worksheet Functions | |||
Counting the total number of cells with specified condition(freque | Excel Discussion (Misc queries) | |||
How do I pick a number from a list in Excel? | Excel Worksheet Functions | |||
a number as a percentage out of a total | Excel Worksheet Functions |