working 2 functions into 1 cell

theboykidney

New Member
Joined
May 19, 2011
Messages
1
Hi,
I have a cell that is returning information from this function
=IF(COUNTA('job B'!N5:N23), 1, "")
which basically returns a 1 if there is any information in a range of cells.

I also have this function:
=1/COUNT(J31:W31)
which divides 1 by the number of cells that have content.

I need these 2 functions merged if possible into one function in a cell.
so the logic/example of it would be:
Check to see if there is any information in the specified range of cells, return a 1 if there is, nothing if there isn't. then looking in the rest of this column (which has the same function repeated), count how many cells have entries and divide 1 by that count.
The result will be a column of cells that will contain decimal numbers that add up to 1, dynamically changing if more entries are put in at the source.

any pointers?

Thanks a lot,
TBK.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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