Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Due date changes when new value is inputted in a different column

I have this if statement
=IF(I4:I150<=10101,"",DATE(YEAR(I4:I150),MONTH(I4: I150)+G4:G150,DAY(I4:I150)))
and it works great when it looks at this one column. It returns the answer I
want. However, I need it to look at additional columns that will superceed
the previous one without erasing their date and still show the result in the
original column.
Column "F" shows the result. Columns "I-Z" give the date superceeding each
occurrance.
i.e. "F" returns a date based on column "G" and "I". When a new date is put
in "J" I want column "F" to show the update.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Due date changes when new value is inputted in a different column

It's long but it seems to work:
=MID(CONCATENATE(G2,H2,I2,J2,K2,L2,M2,N2,O2,P2,Q2, R2,S2,T2,U2,V2,W2,X2,Y2,Z2),1,5)*1

WHy it works:
When you concatenate cells, excel treats them as text. This means each date
will actually be read as the date serial in this concatenation. Since date
serials are always 5 digits you pull the left most five and that means that
as the users fill in dates, the first cell refrence to have a value will get
precedence. If you wanted to give precedence to items more to the right (Z
trumps y, then just reverse the list.)

Multiplying it by one turns the date serial from text to numeric, so when
you format as date it will show a classic date instead of a serial.
*NOTE*
This breaks down if a user enters a value other then a date in a cell.

"John" wrote in message
...
I have this if statement
=IF(I4:I150<=10101,"",DATE(YEAR(I4:I150),MONTH(I4: I150)+G4:G150,DAY(I4:I150)))
and it works great when it looks at this one column. It returns the answer
I
want. However, I need it to look at additional columns that will superceed
the previous one without erasing their date and still show the result in
the
original column.
Column "F" shows the result. Columns "I-Z" give the date superceeding each
occurrance.
i.e. "F" returns a date based on column "G" and "I". When a new date is
put
in "J" I want column "F" to show the update.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Due date changes when new value is inputted in a different col

Many Thanks!!!! You have no idea how helpful this has been. Thank you.

"Oorang" wrote:

It's long but it seems to work:
=MID(CONCATENATE(G2,H2,I2,J2,K2,L2,M2,N2,O2,P2,Q2, R2,S2,T2,U2,V2,W2,X2,Y2,Z2),1,5)*1

WHy it works:
When you concatenate cells, excel treats them as text. This means each date
will actually be read as the date serial in this concatenation. Since date
serials are always 5 digits you pull the left most five and that means that
as the users fill in dates, the first cell refrence to have a value will get
precedence. If you wanted to give precedence to items more to the right (Z
trumps y, then just reverse the list.)

Multiplying it by one turns the date serial from text to numeric, so when
you format as date it will show a classic date instead of a serial.
*NOTE*
This breaks down if a user enters a value other then a date in a cell.

"John" wrote in message
...
I have this if statement
=IF(I4:I150<=10101,"",DATE(YEAR(I4:I150),MONTH(I4: I150)+G4:G150,DAY(I4:I150)))
and it works great when it looks at this one column. It returns the answer
I
want. However, I need it to look at additional columns that will superceed
the previous one without erasing their date and still show the result in
the
original column.
Column "F" shows the result. Columns "I-Z" give the date superceeding each
occurrance.
i.e. "F" returns a date based on column "G" and "I". When a new date is
put
in "J" I want column "F" to show the update.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Due date changes when new value is inputted in a different col

Oorang,
I have one additional request. I want the cell to be empty until I use the
columns. How do I keep the error (#VALUE!) from showing up?

"John" wrote:

Many Thanks!!!! You have no idea how helpful this has been. Thank you.

"Oorang" wrote:

It's long but it seems to work:
=MID(CONCATENATE(G2,H2,I2,J2,K2,L2,M2,N2,O2,P2,Q2, R2,S2,T2,U2,V2,W2,X2,Y2,Z2),1,5)*1

WHy it works:
When you concatenate cells, excel treats them as text. This means each date
will actually be read as the date serial in this concatenation. Since date
serials are always 5 digits you pull the left most five and that means that
as the users fill in dates, the first cell refrence to have a value will get
precedence. If you wanted to give precedence to items more to the right (Z
trumps y, then just reverse the list.)

Multiplying it by one turns the date serial from text to numeric, so when
you format as date it will show a classic date instead of a serial.
*NOTE*
This breaks down if a user enters a value other then a date in a cell.

"John" wrote in message
...
I have this if statement
=IF(I4:I150<=10101,"",DATE(YEAR(I4:I150),MONTH(I4: I150)+G4:G150,DAY(I4:I150)))
and it works great when it looks at this one column. It returns the answer
I
want. However, I need it to look at additional columns that will superceed
the previous one without erasing their date and still show the result in
the
original column.
Column "F" shows the result. Columns "I-Z" give the date superceeding each
occurrance.
i.e. "F" returns a date based on column "G" and "I". When a new date is
put
in "J" I want column "F" to show the update.




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
Capturing The Date Of When Data Is Inputted justduet Excel Discussion (Misc queries) 1 October 20th 07 07:46 PM
Data Changes itself after I have inputted. Funky Excel Discussion (Misc queries) 5 September 27th 07 01:25 PM
Getting Last Value that inputted instereo911 via OfficeKB.com Excel Discussion (Misc queries) 0 April 25th 07 07:51 PM
Record date cell is inputted Marty Excel Discussion (Misc queries) 1 January 23rd 07 08:57 PM
adding months to an inputted date BLW Excel Discussion (Misc queries) 5 June 9th 05 03:26 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"