+ Reply to Thread
Results 1 to 5 of 5

If statement for multiple cells

  1. #1
    Registered User
    Join Date
    03-05-2007
    Posts
    39

    If statement for multiple cells

    I am looking for an IF STATEMENT that can look across multiple cells and if it finds anything greater than 0 to show that ID number.

    Attachement
    Sheet "data" look at A4 thru L4 and if it sees anything greater than 0 to pull ID from M4 and put ID on sheet "Value"
    Attached Files Attached Files
    Last edited by VBA Noob; 10-31-2007 at 04:27 PM.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Put this formula under OppID in the Values sheet for any row you want to analyze


    Please Login or Register  to view this content.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Registered User
    Join Date
    03-05-2007
    Posts
    39

    Almost

    The formula works for items that have something in column A. However, it puts a 0 if there is nothing in column A, even though there is something in column B or C, etc. So, I need just a little more assistance. Thank you so much for your help.

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Sorry about that. Ok different approach. Try this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-05-2007
    Posts
    39

    Smile Yeah

    Awesome! You are the best. Works great. Thanks

+ 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