Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default please explain this syntax

cells(r+1,"af").formula= "= countif(" & rngbas.address & "," & cells(r+1,
"AE").address & ")"

I think this means that a formula is being inserted in cell (r+1,af).
The formula is counting all of the occurrences of the contents of cell(r+1,
ae) that can be found in a particular range.
I know that rngbas is a range.
I do not understand the rngbas.address or the second mention of .address.

Please interpret for me.
TIA
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default please explain this syntax

Youre right
This snippet inserts a Countif formula in col AF (at row r+1)
Countif takes 2 arguments the range to check and the critiiria
rngbas.address is the reference to the cells to be counted (must be defined
earlier in the code)
cells(r+1, "AE").address is a reference to a cell that contains the criteria
on which to count them

HTH
Cheers
Simon

"Papa Jonah" wrote:

cells(r+1,"af").formula= "= countif(" & rngbas.address & "," & cells(r+1,
"AE").address & ")"

I think this means that a formula is being inserted in cell (r+1,af).
The formula is counting all of the occurrences of the contents of cell(r+1,
ae) that can be found in a particular range.
I know that rngbas is a range.
I do not understand the rngbas.address or the second mention of .address.

Please interpret for me.
TIA
Jeff

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 148
Default please explain this syntax

But why the ".address" following "cells(r+1,"AE")? Isn't cells(r+1,"AE")
already an address?

"Simon Murphy" wrote:

Youre right
This snippet inserts a Countif formula in col AF (at row r+1)
Countif takes 2 arguments the range to check and the critiiria
rngbas.address is the reference to the cells to be counted (must be defined
earlier in the code)
cells(r+1, "AE").address is a reference to a cell that contains the criteria
on which to count them

HTH
Cheers
Simon

"Papa Jonah" wrote:

cells(r+1,"af").formula= "= countif(" & rngbas.address & "," & cells(r+1,
"AE").address & ")"

I think this means that a formula is being inserted in cell (r+1,af).
The formula is counting all of the occurrences of the contents of cell(r+1,
ae) that can be found in a particular range.
I know that rngbas is a range.
I do not understand the rngbas.address or the second mention of .address.

Please interpret for me.
TIA
Jeff

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default please explain this syntax

When you reference a cell: cells(r+1,"AE") the default result is the VALUE
in the cell, not the address of the cell. If you want the address you have
to state that with cells(r+1,"AE").address

"Papa Jonah" wrote:

But why the ".address" following "cells(r+1,"AE")? Isn't cells(r+1,"AE")
already an address?

"Simon Murphy" wrote:

Youre right
This snippet inserts a Countif formula in col AF (at row r+1)
Countif takes 2 arguments the range to check and the critiiria
rngbas.address is the reference to the cells to be counted (must be defined
earlier in the code)
cells(r+1, "AE").address is a reference to a cell that contains the criteria
on which to count them

HTH
Cheers
Simon

"Papa Jonah" wrote:

cells(r+1,"af").formula= "= countif(" & rngbas.address & "," & cells(r+1,
"AE").address & ")"

I think this means that a formula is being inserted in cell (r+1,af).
The formula is counting all of the occurrences of the contents of cell(r+1,
ae) that can be found in a particular range.
I know that rngbas is a range.
I do not understand the rngbas.address or the second mention of .address.

Please interpret for me.
TIA
Jeff

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
Explain THIS ... Ray Excel Discussion (Misc queries) 9 July 31st 07 08:06 PM
explain this one to me.... Dave F Excel Discussion (Misc queries) 10 November 16th 06 11:05 PM
Let me see if I can explain this... jsc3489 Excel Worksheet Functions 0 July 22nd 05 05:04 PM
Can someone explain to me? Pls? stevetan2010[_4_] Excel Programming 3 November 16th 04 08:18 AM
Please explain syntax needed Nobody[_3_] Excel Programming 1 June 3rd 04 10:50 PM


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