+ Reply to Thread
Results 1 to 2 of 2

write a formula to a range

  1. #1
    Martin
    Guest

    write a formula to a range

    Hi;
    My range is Column R from row 2 to lastrow - where last row is approx row
    5000.

    My Formula is:
    =IF(LEFT(M:M,1)="H",IF(LEFT(O:O,1)="I",1,3),IF(LEFT(O:O,1)="I",2,4))

    I would like to write the formula to the range. How is this done.

    Thank you,
    --
    Martin

  2. #2
    Bob Phillips
    Guest

    Re: write a formula to a range

    Range("R2:R" & LastRow).Formula =
    "=IF(LEFT(M:M,1)=""H"",IF(LEFT(O:O,1)=""I"",1,3),IF(LEFT(O:O,1)=""I"",2,4))"


    --

    HTH

    Bob Phillips

    (remove nothere from the email address if mailing direct)

    "Martin" <[email protected]> wrote in message
    news:[email protected]...
    > Hi;
    > My range is Column R from row 2 to lastrow - where last row is approx row
    > 5000.
    >
    > My Formula is:
    > =IF(LEFT(M:M,1)="H",IF(LEFT(O:O,1)="I",1,3),IF(LEFT(O:O,1)="I",2,4))
    >
    > I would like to write the formula to the range. How is this done.
    >
    > Thank you,
    > --
    > Martin




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1