Amend Formula

  • Thread starter Thread starter colin
  • Start date Start date
C

colin

Hi
I have the following formulas in cells A1 and A2

=COUNTIF(Log!N2928:N3657,"4")/2
=COUNTIF(Log!P2928:P3657,"4")/2

Is there an easy way to amend the formulas to:

=COUNTIF(Log!N3660:N4208,"4")/2
=COUNTIF(Log!P3660:P4208,"4")/2

without having to manually typing them in (please note that I need to
maintain the column references)

Many thanks in anticipation

Colin
 
Hi Colin,

Press Ctrl + H, and replace N2928:N3657 with N3660:N4208. Again replace
P2928:P3657 with N3660:N4208. Just two simple steps are you are done.
Thanks.

--
Click on Yes, if it is useful.

Thanks & Best Regards,
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
(e-mail address removed)
(e-mail address removed)
New Delhi, India
 
Hi

Many thanks for the suggestion - if I do a find and replace for 2928 in both
cells and then do a replace all then the first cell is correctly updated,
however the second replacement amends as follows:

=COUNTIF(Log!N3660:N3657,"4")/2
=COUNTIF(Log!P2928:P3660,"4")/2

The second cells formula amends the second part of the range which to me
appears odd - Iam using excel 2007 - is this a bug?

Kind regards

Colin
 
--Select the cells
--Launch the replace window using Ctrl+H
--Click options and make sure the selection for 'Lookin' is formulas
--Do the below number replacements
find 2928 with 3660
find 3657 with 4208

If this post helps click Yes
 
Hi Colin

It seems to be a (another) bug!

Replace the larger value first, then it seems to work.

Regards,
Per
 
Hi Jacob,

Thanks for the reply - I have checked the options and the lookin is set to
formulas however it still replaces the second part of the range

=COUNTIF(Log!N3660:N3657,"4")/2
=COUNTIF(Log!P2928:P3660,"4")/2

Rgds

Colin
 
Can you try entering the formulas in to a new workbook/sheet and try the
replacement..

If this post helps click Yes
 
Hi Per,

Thanks for the suggestion

That works - many thanks

Must be a built in design feature!!!

Kind regards

Colin
 
Hi Jacob

I see the same behaviour as OP. Have tested it in a new excel 2007 workbook,
where I pasted OP's formulas.

If I replace the larger value first, it is working correct.

Regards,
Per
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Need Countifs Formula Help 0
Countif Formula 1
Excell Countif w/ more than one criteria 6
Countif formula 2
Excel Copy COUNTIF while retaining reference 7
Formula is too long 2
Help needed on possible countif.. 3
COUNTIF 3

Back
Top