excel - Subtracting 2 hours from a cell using VBA -


i need search column in such way if value in column "soccer", time should adjusted in column 5 2 hours (subtract 2 hours current time in column 5). format in column 5 dd/mm/yyyy hh:mm.

i struggling subtract 2 hours , replace new time vba.

any ideas?

kp

check formula, available on google.

=if(upper(a1)="soccer",e1-(2/24),"no change") 

where,

  1. a1 column contains "soccer"
  2. e1 column contains "time"

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -