Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / February 2008

Tip: Looking for answers? Try searching our database.

Reference absolute cell values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
googlegroup@ericrucker.com - 08 Feb 2008 23:00 GMT
Hi -

I'm using the following formulas to count the number of specific
characters ($K$147) in a given cell and increment by 1:

In cell H74:
=IF($H$5=0,0,(LEN($H$5)-LEN(SUBSTITUTE($H$5,$K$147,""))+1))
In cell I74:
=IF($I$5=0,0,(LEN($I$5)-LEN(SUBSTITUTE($I$5,$K$147,""))+1))

The problem is if a user CUTS the data in cell H5 and pastes it into
cell I5, then the formula in cell I74 fails as follows:
=IF(#REF!=0,0,(LEN(#REF!)-LEN(SUBSTITUTE(#REF!,$K$147,""))+1))

I've tried using the INDIRECT command to create a reference table of
the values in H74 & I74 but the character in cell $K$147 is a Carriage
Return which INDIRECT doesn't seem to recognize.

Any ideas would be welcome. Apologies in advance if this isn't clear.

Eric
T. Valko - 09 Feb 2008 06:24 GMT
Try it like this:

=IF(INDIRECT("I5")=0,0,(LEN(INDIRECT("I5"))-LEN(SUBSTITUTE(INDIRECT("I5"),$K$147,""))+1))

That will *always* refer to I5

Signature

Biff
Microsoft Excel MVP

> Hi -
>
[quoted text clipped - 17 lines]
>
> Eric
googlegroup@ericrucker.com - 11 Feb 2008 19:19 GMT
> Try it like this:
>
[quoted text clipped - 33 lines]
>
> - Show quoted text -

Solution worked great. Thanks for the help.
T. Valko - 11 Feb 2008 19:48 GMT
>Solution worked great. Thanks for the help.

You're welcome. Thanks for the feedback!

Signature

Biff
Microsoft Excel MVP

On Feb 8, 10:24 pm, "T. Valko" <biffinp...@comcast.net> wrote:
> Try it like this:
>
[quoted text clipped - 33 lines]
>
> - Show quoted text -

Solution worked great. Thanks for the help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.