Change Data in Columns According to Time Stamp Using Multiple Formulas or Conditions

damon_l

New Member
Joined
Jul 13, 2017
Messages
25
Good Day,

I have a large spreadsheet with multiple columns taken from a data logger.

The first column is a timestamp column that logs data every 15 minutes for a full 12 months.

I needed to modify this column to reset all data logged between 12:00 and 17:00 so I used this formula.


=NOT((MOD(C2; 1) > TIMEVALUE("12:30"))*(MOD(C2; 1) < TIMEVALUE("17:00")))*M2

In Column M I used the following formula
M =IF(D14=0; 0; 3,48)

As the data logged is binary only a 0 or 1 but the figures needs to be either a 0 or 3.48 to be of any value to me.
So the initial formula states that data logged between 12:00 and 17:30 must be reset to 0.
However, I need to expand on this formula by maybe adding another formula or condition to reset all the data between 17:00 and 21:00 to 3.48. Original data logged during these times are either 0 or 3.48 at the moment but need to change them all to 3.48. :eeek:


Can anyone advise on how to do this? :confused:

Cheers
Damon
<strike>
</strike>
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,224,787
Messages
6,180,950
Members
453,008
Latest member
GRTMAN

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top