+ Reply to Thread
Results 1 to 10 of 10

IF= Formula

  1. #1
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    IF= Formula

    Im trying to create a spreadsheet. I have 2 sheets, 1 with the unit numbers i have to use the second with issues the product could have. I would like to be able to just enter a number 1-50 and whatever # i input the issue i have on my second spreadsheet would be inputed. for example.

    file attached

    i will also be entering or need to enter more than one issue per unit #.

    Thanks for the quick responses.
    Attached Files Attached Files
    Last edited by BFelt; 08-24-2011 at 11:13 AM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Newbie Help

    It would be helpful if you posted an example workbook, so that we could see the layout of your data (and also if you changed the title of this thread to something a bit more descriptive), but...

    Let's say your first sheet has the unit numbers in column A, starting at row 2, and you're going to input the problem # in column B. Let's also assume that your second sheet is called Issues and has the list of issues in column A, starting at row 2.

    On the first sheet, in C2, put the formula =IF(B2<>"",INDEX(Issues!A:A,B2+1),"")

    That should work.

  3. #3
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Newbie Help

    Quote Originally Posted by Andrew-R View Post
    It would be helpful if you posted an example workbook, so that we could see the layout of your data (and also if you changed the title of this thread to something a bit more descriptive), but...

    Let's say your first sheet has the unit numbers in column A, starting at row 2, and you're going to input the problem # in column B. Let's also assume that your second sheet is called Issues and has the list of issues in column A, starting at row 2.

    On the first sheet, in C2, put the formula =IF(B2<>"",INDEX(Issues!A:A,B2+1),"")

    That should work.
    Set it up like u've stated above, but am not gettign results i would like any results for that fact

  4. #4
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: IF= Formula

    The formula works fine, but I'm guessing the structure of your workbook, which is probably why it isn't doing anything. Can you post an example workbook for me to look at?

    Here is a sample workbook I created, based on what I think you're trying to do and which shows the formula I gave you working.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF= Formula

    i have attached my workbook to first post. I am needing to more than 1 issue per unit number probably about 10-20 issues per #. on the first sheet i noticed i did not recognize a issues coloum next to the unit #
    Last edited by BFelt; 08-24-2011 at 11:41 AM.

  6. #6
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: IF= Formula

    OK - what you're after would be very tricky with formula, or fairly easy with macros. Do you have any objection to having some macro code in your workbook?

  7. #7
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF= Formula

    im not sure what u mean by macros but im sure it wouldnt be a problem having it in my spreadsheet

  8. #8
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: IF= Formula

    how easy of a macro would this be and what would you start with? thanks again for quick responses.

  9. #9
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: IF= Formula

    Excel has it's own in-built programming language, called VBA (Visual Basic for Applications) - it's very flexible and can do many, many things that aren't possible with just worksheet functions, but it's also probably harder for a new Excel user to understand.

    I've attached your example book, with a macro added.

    Basically what it now does it when you enter a number in column B of the first sheet it will look-up that issue on the 2nd sheet and put the value in column C and then clear cell B. You can add multiple problems by putting the numbers one at a time into column B.

    If you put a negative number in column B it will remove that issue from the list in Column C.

    Neither column contains any formula, so you can type over them as you see fit and it won't alter the operation of the macro.

    However, now when you open the workbook you'll have to confirm that you want the macros enabled (Excel will prompt you).

    Thanks.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-24-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    6

    Smile Re: IF= Formula

    Very cool thanks a ton!!!!

+ 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