ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Retaining metrics for each month (https://www.excelbanter.com/excel-discussion-misc-queries/258284-retaining-metrics-each-month.html)

Handy

Retaining metrics for each month
 
What condition can be used to keep a cells evaluation status within that
month even if it changes the next month. For example if A2 = "evaluated" in
January but changes to "completed" in February, how can you retain that
evaluated status for the month of January even after it changes during a
later month?

Dave Peterson

Retaining metrics for each month
 
You'll need something (you???) to change the formula to a value.

Depending on what you're doing, you may be able to use a worksheet_calculate
event.

After each calculation, the range you specify would be examined. If the formula
evaluates to "completed", then the macro would change the formula to a value.

Handy wrote:

What condition can be used to keep a cells evaluation status within that
month even if it changes the next month. For example if A2 = "evaluated" in
January but changes to "completed" in February, how can you retain that
evaluated status for the month of January even after it changes during a
later month?


--

Dave Peterson

Handy

Retaining metrics for each month
 
How would I do that?
I'll use this as an example:
Column B represents status (evaluated, completed)...
January month end metrics need to show how many (within column B) show
evaluated during the month of January. Lets say that calculates to 5 total
within column B that have a status of "evaluated".
Now for February's month end metrics, I need to know how many show evaluated
and it calculates to 3 total within column B that have a status of
"evaluated".

BUT now that formula would have changed January's total as well....
What exactly would I need to do in this situation? How would I change a
formula to a value?

"Dave Peterson" wrote:

You'll need something (you???) to change the formula to a value.

Depending on what you're doing, you may be able to use a worksheet_calculate
event.

After each calculation, the range you specify would be examined. If the formula
evaluates to "completed", then the macro would change the formula to a value.

Handy wrote:

What condition can be used to keep a cells evaluation status within that
month even if it changes the next month. For example if A2 = "evaluated" in
January but changes to "completed" in February, how can you retain that
evaluated status for the month of January even after it changes during a
later month?


--

Dave Peterson
.


Dave Peterson

Retaining metrics for each month
 
Manually, you can just copy|paste special|values.

In code, it's
with worksheets("Sheet1")
.value = .value
end with

I don't think I understand enough about your workbook to offer any specific
instruction.

Handy wrote:

How would I do that?
I'll use this as an example:
Column B represents status (evaluated, completed)...
January month end metrics need to show how many (within column B) show
evaluated during the month of January. Lets say that calculates to 5 total
within column B that have a status of "evaluated".
Now for February's month end metrics, I need to know how many show evaluated
and it calculates to 3 total within column B that have a status of
"evaluated".

BUT now that formula would have changed January's total as well....
What exactly would I need to do in this situation? How would I change a
formula to a value?

"Dave Peterson" wrote:

You'll need something (you???) to change the formula to a value.

Depending on what you're doing, you may be able to use a worksheet_calculate
event.

After each calculation, the range you specify would be examined. If the formula
evaluates to "completed", then the macro would change the formula to a value.

Handy wrote:

What condition can be used to keep a cells evaluation status within that
month even if it changes the next month. For example if A2 = "evaluated" in
January but changes to "completed" in February, how can you retain that
evaluated status for the month of January even after it changes during a
later month?


--

Dave Peterson
.


--

Dave Peterson

Dave Peterson

Retaining metrics for each month
 
Correcting a typo...

with worksheets("Sheet1").range("A1")
.value = .value
end with

Dave Peterson wrote:

Manually, you can just copy|paste special|values.

In code, it's
with worksheets("Sheet1")
.value = .value
end with

I don't think I understand enough about your workbook to offer any specific
instruction.

Handy wrote:

How would I do that?
I'll use this as an example:
Column B represents status (evaluated, completed)...
January month end metrics need to show how many (within column B) show
evaluated during the month of January. Lets say that calculates to 5 total
within column B that have a status of "evaluated".
Now for February's month end metrics, I need to know how many show evaluated
and it calculates to 3 total within column B that have a status of
"evaluated".

BUT now that formula would have changed January's total as well....
What exactly would I need to do in this situation? How would I change a
formula to a value?

"Dave Peterson" wrote:

You'll need something (you???) to change the formula to a value.

Depending on what you're doing, you may be able to use a worksheet_calculate
event.

After each calculation, the range you specify would be examined. If the formula
evaluates to "completed", then the macro would change the formula to a value.

Handy wrote:

What condition can be used to keep a cells evaluation status within that
month even if it changes the next month. For example if A2 = "evaluated" in
January but changes to "completed" in February, how can you retain that
evaluated status for the month of January even after it changes during a
later month?

--

Dave Peterson
.


--

Dave Peterson


--

Dave Peterson


All times are GMT +1. The time now is 02:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com