Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2016, 07:25 AM
Helix2 Helix2 is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 7 32bit COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Novice
COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet
 
Join Date: Oct 2016
Posts: 3
Helix2 is on a distinguished road
Default COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet

After lots of googling I have found that the following formula does what I want it to do (I don't understand why COUNTIF has such a hatred of cells that aren't next to each other)



=SUM(COUNTIF(INDIRECT({"BC3","BE3","BK3"}),">"&AA3 ))

The trouble is now every time I add a column to my sheet it doesn't auto update the cell references, and I change this sheet all the time. Is the only way to avoid that to use the following, which is much more time consuming to write?

SUM(COUNTIF(BC6,...">"&AA6),COUNTIF(BE6,">"&AA6),C OUNTIF(BK6,">"&AA6)

I need loads of columns with formula like this and in reality the formula is counting in way more cells than shown here. Alternatively is there a statistical function that may help? AA3 is an average of all the other cells and I want to know how many of the original values were above the average.

Any suggestions would be massively appreciated.

Thank you.
Reply With Quote
  #2  
Old 10-24-2016, 09:23 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 7 64bit COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Quote:
Originally Posted by Helix2 View Post
AA3 is an average of all the other cells and I want to know how many of the original values were above the average.

Thank you.
Do you mean that AA3 is the average of a continuous range like A1:G1 ?
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 10-24-2016, 09:34 AM
Helix2 Helix2 is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 7 32bit COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Novice
COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet
 
Join Date: Oct 2016
Posts: 3
Helix2 is on a distinguished road
Default

No I'm afraid not.
Reply With Quote
  #4  
Old 10-24-2016, 11:24 AM
xor xor is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 10 COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

Here is one suggestion.
Attached Files
File Type: xlsx CountNonContiguous.xlsx (10.3 KB, 14 views)
Reply With Quote
  #5  
Old 10-24-2016, 11:44 AM
Helix2 Helix2 is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 7 32bit COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Novice
COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet
 
Join Date: Oct 2016
Posts: 3
Helix2 is on a distinguished road
Default

Thank you xor. I don't fully understand the criteria that decides if a cell gets taken and put into the continuous range (I have only recently learnt how to use INDEX) so I will experiment with it when I get home from work.

Thanks again for your help.
Reply With Quote
  #6  
Old 10-24-2016, 09:57 PM
xor xor is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 10 COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

It takes up to and including the last cell in BC3:BZ3 containing a number. You can change BZ3 to a higher address if needed.

Please note that the formulas in BC1:BZ1 are array formulas. An array formula must be entered by holding down Ctrl and Shift before pressing Enter where you normally just press Enter. If you do it correct Excel will automatically put braces {} around the formula. When you have entered one array formula correctly you can copy it to other cells in the normal way.
Reply With Quote
  #7  
Old 10-24-2016, 10:33 PM
xor xor is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 10 COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Expert
 
Join Date: Oct 2015
Posts: 1,097
xor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to allxor is a name known to all
Default

On second thought I don't think my suggestion works. I guess you have something in between BC3 and BE3, BE3 and BK3 and so on?
Reply With Quote
  #8  
Old 10-25-2016, 03:20 AM
cobbe cobbe is offline COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Windows 10 COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Office 2016
Novice
 
Join Date: Mar 2016
Posts: 6
cobbe is on a distinguished road
Default

Use a namedefinition for de used cells.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet Open an existing sheet by clicking on a cell in a master sheet darbybrown Excel 3 09-12-2016 05:12 PM
Find text within cell and return column and row title next to the name on a new sheet. tanyabowring@live.co.uk Excel Programming 2 03-26-2015 01:48 AM
COUNTIF and Cell address problem ColinC Excel 3 12-24-2011 04:08 AM
COUNTIF(INDIRECT doesn't autoupdate cell references when I add a column somewhere else in my sheet using a cell content as a string with COUNTIF geoffm Excel 1 08-16-2011 11:31 AM
Excel sheet references in Word ilkks Word 2 05-16-2011 03:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft