Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Problem updating nested IF statement results



I'm using the following formula to give a value to several items of data
that I want to link into a Visualbasic program:

=IF((AND($U$1=Y2,Z2="D")),1,0), where $U$1 is the copy of a date in U2 (set
up as a relative link to another spreadsheet.

However, when I run a macro to copy the date in U2
(as either values or values and number formats) into U1 the formula does not
update in the row where the condition is met.

Why does it not update and how can I solve this problem?

Many thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Problem updating nested IF statement results

I just knocked up some simple simulation code, and it worked for me.

Where is the formula (which cell)? Show the copy code.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Zakynthos" wrote in message
...


I'm using the following formula to give a value to several items of data
that I want to link into a Visualbasic program:

=IF((AND($U$1=Y2,Z2="D")),1,0), where $U$1 is the copy of a date in U2
(set
up as a relative link to another spreadsheet.

However, when I run a macro to copy the date in U2
(as either values or values and number formats) into U1 the formula does
not
update in the row where the condition is met.

Why does it not update and how can I solve this problem?

Many thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Problem updating nested IF statement results

Bob,

Many thanks - the copy code is:

Selection.Copy
Range("U1").Select
Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:= _
xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False

The formula is in cell: AG20. AC20 has the value 08/09/2007 and AE20 has
the value "E"

Best wishes,

Tony



"Zakynthos" wrote:



I'm using the following formula to give a value to several items of data
that I want to link into a Visualbasic program:

=IF((AND($U$1=Y2,Z2="D")),1,0), where $U$1 is the copy of a date in U2 (set
up as a relative link to another spreadsheet.

However, when I run a macro to copy the date in U2
(as either values or values and number formats) into U1 the formula does not
update in the row where the condition is met.

Why does it not update and how can I solve this problem?

Many 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
nested IF SUMPRODUCT updating to closed workbook Sharon Excel Worksheet Functions 0 December 19th 07 04:38 PM
Nested if statement and vlookup problem Steve Excel Programming 4 June 28th 07 10:24 PM
Screen Updating problem with nested subroutines Atreides Excel Programming 4 February 7th 07 05:25 AM
Nested if statement problem! Simon Lloyd[_634_] Excel Programming 1 July 28th 05 01:15 PM
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM


All times are GMT +1. The time now is 08:52 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"