+ Reply to Thread
Results 1 to 10 of 10

If macro picking up 5 inputs changing to 3 outputs

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Wink If macro picking up 5 inputs changing to 3 outputs

    Hi all,

    I'm trying to take 5 inputs that are all in text format and inputs have fixed options what i need is a macro that will take them and turn them in to the relevant outputs. there is a select amount of combinations and i've been asked to do each combination as a separate macro or sub macro.


    What i have so far is;

    If C6 = "Panel plate" And D6 = "24 by 21" And E6 = "<1.59" And F6 = "N/A " Then I6 = "120" And j6 = "4" And L6 = "120"
    End Sub

    A B C D E F G H I J K L
    1
    2
    4
    5
    6 Panel plate 24 by 21 <1.59 N/A
    7
    8
    9
    10

    (Doesn't seem to work)
    If those four cell match up then i need I6-L6 to line up with whats required.
    If they don't equal that i need it to stay clear.
    I also need to add the same macro with different options
    I'll take any advice or any other options that are easier.

    Thanks in advance, any question feel free to comment.

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If macro picking up 5 inputs changing to 3 outputs

    Get rid of the quotes on the numbers.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If macro picking up 5 inputs changing to 3 outputs

    Cheers for the quick reply i've tried that still doesn't work :P

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If macro picking up 5 inputs changing to 3 outputs

    Try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If macro picking up 5 inputs changing to 3 outputs

    Thanks again but still no, would a copy of the file help?

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If macro picking up 5 inputs changing to 3 outputs

    Hi andrewg23,

    Yes, a copy of the file ought to do the trick!

    Try this though:

    Please Login or Register  to view this content.
    Last edited by xladept; 09-10-2012 at 04:20 PM.

  7. #7
    Registered User
    Join Date
    09-10-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If macro picking up 5 inputs changing to 3 outputs

    plating calc..xlson sheet 2 there is the combinations i need a calculator on one row that when the 1st section is selected the 2nd half is filled it. finish and plating addition are not need at the moment so ignore them

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If macro picking up 5 inputs changing to 3 outputs

    Hi andrewg23,

    This works now - I had to copy the strings on the spreadsheet and paste them into the routine - the problem is that they must be exact:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    09-10-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If macro picking up 5 inputs changing to 3 outputs

    thanks a lot for all you help.

    Cheers
    Andrewg23

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: If macro picking up 5 inputs changing to 3 outputs

    You're welcome!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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