+ Reply to Thread
Results 1 to 3 of 3

IF statements in a macro

  1. #1
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    IF statements in a macro

    Hello all
    I have a list of distances in miles,furlongs and yards in col A,In col B i wish to input the known simple numeric value which matches each distance.The data is 161 rows long and to many for nested IFstatements eg IF(A2="5F",B2).Is there a macro or alternate formula
    which will fill col B with the required values as shown.Many thanks for any help given.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: IF statements in a macro

    Hello,

    can you please upload the data in an Excel workbook? This will make it much easier to test and provide a solution. The data sample above will not transfer cleanly to two columns.

    cheers,

  3. #3
    Forum Contributor
    Join Date
    04-30-2011
    Location
    wirral,england
    MS-Off Ver
    Excel 2010
    Posts
    148

    Re: IF statements in a macro

    Quote Originally Posted by teylyn View Post
    Hello,

    can you please upload the data in an Excel workbook? This will make it much easier to test and provide a solution. The data sample above will not transfer cleanly to two columns.

    cheers,
    Thanks for the reply please see attached spreadsheet
    Attached Files Attached Files

+ 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