+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    If/Then statements

    Hi All,

    I have a Quote tracking sheet, please see attached.

    I would like to create a 'if/then' statement where if in sheet 1, M5 the cell states "rejected", data from sheet one (range A5 - L5) will appear in sheet 2.

    Any suggestions?
    Attached Files Attached Files
    Last edited by Zan03; 03-18-2010 at 07:40 PM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: If/Then statements

    Hi,

    You'd be better advised to use a Data Filter with a criteria set to 'Yes' on the Rejected field.

    I suggest you create a dynamic range name called "data" which will cover your Sheet1 data, and create an output range, say "DataOut" on sheet 2 A3:L3.

    This will avoid formulae and has the advantage of only listing records that meet the criteria.

    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: If/Then statements

    Thank you Richard... I haven't used data filters before... any suggestions?
    Last edited by Zan03; 03-18-2010 at 07:41 PM.

  4. #4
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: If/Then statements

    Hi,

    See the attached.

    For reference the filter macro attached to the blue button is:

    Code:
    Sub FilterData()
    Range("Data").AdvancedFilter action:=xlFilterCopy, copytorange:=Range("DataOut"), criteriarange:=Range("crit")
    End Sub
    Regards
    Attached Files Attached Files
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: If/Then statements

    Thank you so much Richard!

    I really appreciate your help!

    I'll work backwards and try to figure out how to do it for next time...

    Thanks again, have a great day!

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.2.0