• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
If statements in Excel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

If statements in Excel


  • Subject: If statements in Excel
  • From: "Justin Laden" <email@hidden>
  • Date: Wed, 28 Nov 2007 14:05:45 -0500

I'm having difficulty with if statements in Excel; I'm trying to go through every cell in a range (one column in my table), and based on the value of a cell, I want to fill another cell in another column with a value.  For some reason, my code for this action does nothing.  Here's what I have so far.

repeat with i from 1 to (count cells of range ("F2:F" & z ))

set targetCell to (cell i of range ("I2:I" & z))

if value of cell ("F" & i) = "Printed" then

set value of targetCell to {"OK"}

else

exit repeat

end if

end repeat

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: If statements in Excel
      • From: Paul Berkowitz <email@hidden>
    • Re: If statements in Excel
      • From: Stan Cleveland <email@hidden>
    • Re: If statements in Excel
      • From: Kurt Klamp <email@hidden>
  • Prev by Date: iTunes: Adding tracks with missing files to playlist seems impossible
  • Next by Date: Re: If statements in Excel
  • Previous by thread: iTunes: Adding tracks with missing files to playlist seems impossible
  • Next by thread: Re: If statements in Excel
  • Index(es):
    • Date
    • Thread