简体   繁体   中英

Countif / Count Formula required

Got a weird formula that I'm trying to work out.

What I want to do is as follows:

If Any of the following cells A1 , B4 , D9 etc have a value then +1
The do the same again for another range of cells.

This will need to repeat up to 8 cell ranges

Then I want to get the count of how many times it has had to +1

So for example if 1 cell in each range have values, I want it to +2 etc but if none of the specified cells have values then do nothing.

All the above needs to tagged onto the end of an existing formula that does the following.

=X1/Count(Cell Range)*Z1

What I need is that, when it gets the value for Z1, if the above cells mention earlier, it needs to add that +2 for example to Z1

Sorry for the long winded description, I can't think of a better way to explain it.

This is just to get you started. To test if any of a group of cells has a value, you cant use =COUNTA() or:

=IF(A1 & B4 & D9<>"",1,"")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM