Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lance
 
Posts: n/a
Default Follow-up to Logical Test Question

Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not happen.
The value remains 0001 whether the option is CCPM or another value. How do I
get the value in GJ459 to increment by 12 when CCPM is the option.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Follow-up to Logical Test Question

Hi

You'll have to have a formula in GJ459. But you can't have a formula and a
value. You could have this formula in the
=IF(GQ456="CCPM",13,1)
which will show 1 unless CCPM is in GQ456, and then it would show 13

Andy.

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value. How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lance
 
Posts: n/a
Default Follow-up to Logical Test Question

Thanks Andy, Your response helps to explain the reason why I am not getting
the expected result, but, I probably asked the wrong question. I am looking
for a response that derives the expected result.
=IF(GQ456="CCPM",13,1) This test won't increment the value of GK460 by 12 when "CCPM" is the option, it will place 13 in Cell GR456 and I need it to increment because the value in Cell GK460 changes.


"Andy" wrote:

Hi

You'll have to have a formula in GJ459. But you can't have a formula and a
value. You could have this formula in the
=IF(GQ456="CCPM",13,1)
which will show 1 unless CCPM is in GQ456, and then it would show 13

Andy.

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value. How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ardus Petus
 
Posts: n/a
Default Follow-up to Logical Test Question

Your IF formula won't change the contents of cell GJ459.

HTH
--
AP

"Lance" a écrit dans le message de
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the

value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not

happen.
The value remains 0001 whether the option is CCPM or another value. How

do I
get the value in GJ459 to increment by 12 when CCPM is the option.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lance
 
Posts: n/a
Default Follow-up to Logical Test Question

Respectfully, I understand that Ardus. I am looking for a formula or If
statement that will increment and display in Cell GR456 the value of Cell
GK460 by 12 when "CCPM" is the option in Cell GQ456. Keep in mind that the
value in Cell GK460 changes

"Ardus Petus" wrote:

Your IF formula won't change the contents of cell GJ459.

HTH
--
AP

"Lance" a écrit dans le message de
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the

value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not

happen.
The value remains 0001 whether the option is CCPM or another value. How

do I
get the value in GJ459 to increment by 12 when CCPM is the option.






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default Follow-up to Logical Test Question

There may be spaces or other invisible characters in GQ456. Try to re-enter.
And check Tools OptionsCalculation tab; calculation should be Automatic.

--
Kind regards,

Niek Otten


"Lance" wrote in message ...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not happen.
The value remains 0001 whether the option is CCPM or another value. How do I
get the value in GJ459 to increment by 12 when CCPM is the option.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default Follow-up to Logical Test Question

Lance

GQ456 is CCPM or some other value, yes?

You want GJ459 to increment, so you need a formula in GJ459 like:
=IF(GQ456="CCPM",TEXT(13,"0000"),TEXT(1,"0000"))

A formula in GR456 will not change a value in another cell (GJ459?)
If you want to use GR456 for the initial number (0001) then the formula in
GJ459 would change to:

=IF(GQ456="CCPM",TEXT(GR456+13,"0000"),TEXT(GR456, "0000"))

Beege

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value. How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lance
 
Posts: n/a
Default Follow-up to Logical Test Question

Beege,

I don't want the formula in GR456 to change a value in another cell (GJ459).
I do want whatever value in GJ459 to be incremented by 12 and display in
GR456. In other words the value in GJ459 appears in GR456 add it by 12 and
display the value in GR456 when the value in GQ456 is CCPM. If GQ456 is a
value other than CCPM GR456 will display the same value as GJ459.

"Beege" wrote:

Lance

GQ456 is CCPM or some other value, yes?

You want GJ459 to increment, so you need a formula in GJ459 like:
=IF(GQ456="CCPM",TEXT(13,"0000"),TEXT(1,"0000"))

A formula in GR456 will not change a value in another cell (GJ459?)
If you want to use GR456 for the initial number (0001) then the formula in
GJ459 would change to:

=IF(GQ456="CCPM",TEXT(GR456+13,"0000"),TEXT(GR456, "0000"))

Beege

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value. How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default Follow-up to Logical Test Question

So, then, in GR456
=IF(GQ456=TRIM("CCPM"),TEXT(GJ459+12,"0000"),TEXT( GJ459,"0000"))

Does this work?

Beege

"Lance" wrote in message
...
Beege,

I don't want the formula in GR456 to change a value in another cell
(GJ459).
I do want whatever value in GJ459 to be incremented by 12 and display in
GR456. In other words the value in GJ459 appears in GR456 add it by 12
and
display the value in GR456 when the value in GQ456 is CCPM. If GQ456 is a
value other than CCPM GR456 will display the same value as GJ459.

"Beege" wrote:

Lance

GQ456 is CCPM or some other value, yes?

You want GJ459 to increment, so you need a formula in GJ459 like:
=IF(GQ456="CCPM",TEXT(13,"0000"),TEXT(1,"0000"))

A formula in GR456 will not change a value in another cell (GJ459?)
If you want to use GR456 for the initial number (0001) then the formula
in
GJ459 would change to:

=IF(GQ456="CCPM",TEXT(GR456+13,"0000"),TEXT(GR456, "0000"))

Beege

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value.
How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.






  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lance
 
Posts: n/a
Default Follow-up to Logical Test Question

Beege,

That test doesn't increment the value plus 12. It displays the same value
0000 whether the value of GR456 is CCPM or another value.

Thanks

"Beege" wrote:

So, then, in GR456
=IF(GQ456=TRIM("CCPM"),TEXT(GJ459+12,"0000"),TEXT( GJ459,"0000"))

Does this work?

Beege

"Lance" wrote in message
...
Beege,

I don't want the formula in GR456 to change a value in another cell
(GJ459).
I do want whatever value in GJ459 to be incremented by 12 and display in
GR456. In other words the value in GJ459 appears in GR456 add it by 12
and
display the value in GR456 when the value in GQ456 is CCPM. If GQ456 is a
value other than CCPM GR456 will display the same value as GJ459.

"Beege" wrote:

Lance

GQ456 is CCPM or some other value, yes?

You want GJ459 to increment, so you need a formula in GJ459 like:
=IF(GQ456="CCPM",TEXT(13,"0000"),TEXT(1,"0000"))

A formula in GR456 will not change a value in another cell (GJ459?)
If you want to use GR456 for the initial number (0001) then the formula
in
GJ459 would change to:

=IF(GQ456="CCPM",TEXT(GR456+13,"0000"),TEXT(GR456, "0000"))

Beege

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value.
How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.








  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default Follow-up to Logical Test Question

Lance,

So I don't understand. It works in my spreadsheet. What is in GJ459?
Formula? Text? Number?

Put the last part there in an empty cell; =TEXT(GJ459,"0000")
That should display the "number" as 000#
The "0000" above is for number format to keep leading zeroes...

Beege

"Lance" wrote in message
...
Beege,

That test doesn't increment the value plus 12. It displays the same value
0000 whether the value of GR456 is CCPM or another value.

Thanks

"Beege" wrote:

So, then, in GR456
=IF(GQ456=TRIM("CCPM"),TEXT(GJ459+12,"0000"),TEXT( GJ459,"0000"))

Does this work?

Beege

"Lance" wrote in message
...
Beege,

I don't want the formula in GR456 to change a value in another cell
(GJ459).
I do want whatever value in GJ459 to be incremented by 12 and display
in
GR456. In other words the value in GJ459 appears in GR456 add it by 12
and
display the value in GR456 when the value in GQ456 is CCPM. If GQ456
is a
value other than CCPM GR456 will display the same value as GJ459.

"Beege" wrote:

Lance

GQ456 is CCPM or some other value, yes?

You want GJ459 to increment, so you need a formula in GJ459 like:
=IF(GQ456="CCPM",TEXT(13,"0000"),TEXT(1,"0000"))

A formula in GR456 will not change a value in another cell (GJ459?)
If you want to use GR456 for the initial number (0001) then the
formula
in
GJ459 would change to:

=IF(GQ456="CCPM",TEXT(GR456+13,"0000"),TEXT(GR456, "0000"))

Beege

"Lance" wrote in message
...
Cell GR456 contains the following logical test:
=IF(GQ456="CCPM",GJ459+12,GJ459). When CCPM is the option, I want
the
value
in GJ459 to increment by 12 i.e. 0001 should be 0013. That does not
happen.
The value remains 0001 whether the option is CCPM or another value.
How
do I
get the value in GJ459 to increment by 12 when CCPM is the option.








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
If statement where the logical test is a range that equals a word Steve o Excel Worksheet Functions 8 June 27th 05 02:43 PM
if logical test true, then hlookup, if false then difference betwe VictoriaG Excel Worksheet Functions 0 June 7th 05 08:53 PM
An easy macro question and one I believe to be a little more diffi TroutKing Excel Worksheet Functions 3 January 18th 05 09:17 PM
test for date in column question Buster Excel Worksheet Functions 1 December 10th 04 04:38 AM
Follow on from simple question 12/8/2004 Ajay Excel Discussion (Misc queries) 1 December 9th 04 11:55 PM


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