Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default use cell value in a fomaula

hi
i am trying to search over a range only as far as the first empty cell
eg row 274

= COUNTIF(BH2:BH134,AT2)
what i would like to do is use the value of the first empty cell
so the search would be BH2: "First empty cell",AT2




the formula below returns the row number of the last row with data in
it
=(MATCH("EMPTY",INDIRECT("BA1:BA"&COUNTIF(BA:BA,"< ")+1)&"EMPTY",
0)-1))

ie 250 ( this could change from worksheet to workheet)
so what i am lookig to do is

= COUNTIF(BH2:BH250,AT2) and BH250 to remain contant when i fill the
column with a the fomula

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default use cell value in a fomaula

You forgot to mention the MATCH is an array formula
With the MATCH formula (giving 250) in say AT1
= COUNTIF(INDIRECT("BH2:BH"&$AT$1,AT2)
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"kevcar40" wrote in message
ps.com...
hi
i am trying to search over a range only as far as the first empty cell
eg row 274

= COUNTIF(BH2:BH134,AT2)
what i would like to do is use the value of the first empty cell
so the search would be BH2: "First empty cell",AT2




the formula below returns the row number of the last row with data in
it
=(MATCH("EMPTY",INDIRECT("BA1:BA"&COUNTIF(BA:BA,"< ")+1)&"EMPTY",
0)-1))

ie 250 ( this could change from worksheet to workheet)
so what i am lookig to do is

= COUNTIF(BH2:BH250,AT2) and BH250 to remain contant when i fill the
column with a the fomula



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default use cell value in a fomaula

On 12 Mar, 13:22, "Bernard Liengme"
wrote:
You forgot to mention the MATCH is an array formula
With the MATCH formula (giving 250) in say AT1
= COUNTIF(INDIRECT("BH2:BH"&$AT$1,AT2)
--
Bernard V Liengmewww.stfx.ca/people/bliengme
remove caps from email

"kevcar40" wrote in message

ps.com...



hi
i am trying to search over a range only as far as the first empty cell
eg row 274


= COUNTIF(BH2:BH134,AT2)
what i would like to do is use the value of the first empty cell
so the search would be BH2: "First empty cell",AT2


the formula below returns the row number of the last row with data in
it
=(MATCH("EMPTY",INDIRECT("BA1:BA"&COUNTIF(BA:BA,"< ")+1)&"EMPTY",
0)-1))


ie 250 ( this could change from worksheet to workheet)
so what i am lookig to do is


= COUNTIF(BH2:BH250,AT2) and BH250 to remain contant when i fill the
column with a the fomula- Hide quoted text -


- Show quoted text -


thank you
it works a treat

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
Inputting cell value from source cell based on value in adjacent cell. michaelberrier Excel Discussion (Misc queries) 3 December 9th 06 10:16 PM
cell data not validated if navigating cell to cell with mouse LoveThatMouse Excel Worksheet Functions 6 May 21st 06 10:03 PM
How to create/run "cell A equals Cell B put Cell C info in Cell D abmb161 Excel Discussion (Misc queries) 5 January 26th 06 07:36 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 07:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 06:35 AM


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