Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JJ JJ is offline
external usenet poster
 
Posts: 122
Default if statement with date

Hi,

I have 2 columns, col_a & col_B. col_b is Date format.

If I change date (Any date) for col_b, col-a is goinging to change the text
from "a" to "t"

How can I do this? thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 248
Default if statement with date

Change Col B to date from what, blank?

Try
=IF(B10,"a","t")

in A1

-------------------------------------
Pl. click ''''Yes'''' if this was helpful...



"JJ" wrote:

Hi,

I have 2 columns, col_a & col_B. col_b is Date format.

If I change date (Any date) for col_b, col-a is goinging to change the text
from "a" to "t"

How can I do this? thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default if statement with date

If you would like to use a macro here it is

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Column = 2 Then
Cells(Target.Row, 1) = "t"
End If
End Sub

If you are new to macros.Set the Security level to low/medium in
Tools|Macro|Security). 'Launch VBE using short-key Alt+F11. On the left
treeview right click 'This Workbook '. Drop down to get the change event and
paste the below code. Save. Get back to Workbook and try

If this post helps click Yes
---------------
Jacob Skaria


"JJ" wrote:

Hi,

I have 2 columns, col_a & col_B. col_b is Date format.

If I change date (Any date) for col_b, col-a is goinging to change the text
from "a" to "t"

How can I do this? thanks.

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
Date Between IF And Statement Paperback Writer Excel Discussion (Misc queries) 6 July 29th 08 08:52 PM
How can I use a date in an IF/AND statement? gsmith Excel Discussion (Misc queries) 2 July 13th 05 12:27 AM
If statement with date Tanya Excel Discussion (Misc queries) 4 May 20th 05 01:42 AM
Date in an IF statement LyndieBee Excel Worksheet Functions 2 March 8th 05 04:11 PM
Date related IF statement Miss Candace Excel Worksheet Functions 1 February 28th 05 06:22 PM


All times are GMT +1. The time now is 08:55 AM.

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"