+ Reply to Thread
Results 1 to 9 of 9

Input based on three values and lookup the corresponding month number.

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Input based on three values and lookup the corresponding month number.

    Need to look up all three values and the corresponding month number into the output cells:

    Values in the cells C19, D19, E19 are changeable based on the user input:

    Attached is the spreadsheet, I need to populate the output cells with the value based on the selection in cells C19, D19, E19 and the corresponding month number column B (as well) from the table with all the values corresponding to C19, D19, E19. Please take a look. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Input based on three values and lookup the corresponding month number.

    Please Login or Register  to view this content.
    Try this
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  3. #3
    Registered User
    Join Date
    01-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Input based on three values and lookup the corresponding month number.

    I cannot use "SUMPRODUCT" function , is it possible to achieve it using vlookup? Thanks.

  4. #4
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Input based on three values and lookup the corresponding month number.

    I cannot use "SUMPRODUCT" function
    Why not???
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Input based on three values and lookup the corresponding month number.

    My Software has limitations because I am using the results from this excel to feed another software's input.

    So I am unable to use SUMPRODUCT, I already have the formula but it didnt work for me if I use SUMPRODUCT or SUMIF or INDEX, MATCH. Tried all of them but I am limited to Vlookup or Hlookup at this time.

    Can you please provide an alternate. Thanks.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Input based on three values and lookup the corresponding month number.

    I agree with pop...why cant you use sumproduct()?

    The would be the INDEX/MATCH version, ARRAY entered...
    =INDEX($A$2:$R$15,MATCH($C$19&$D$19,$B$2:$B$15&$D$2:$D$15,0),MATCH($E$19,$A$2:$R$2,0))

    If you are inssistant on using vlookup, insert a helper column after "Network" and copy this down...
    =B3&D3
    Then your vlookup would be...
    =VLOOKUP($C$19&$D$19,$E$2:$S$15,MATCH(F19,$E$2:$S$2,0),0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,296

    Re: Input based on three values and lookup the corresponding month number.

    Or maybe a pivot table can help you?

  8. #8
    Registered User
    Join Date
    01-17-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Input based on three values and lookup the corresponding month number.

    I am getting the following error #N/A when I try the below formula: Can you please check. I cannot use MATCH eighter only Vlookup. Thanks.

    If you are inssistant on using vlookup, insert a helper column after "Network" and copy this down...
    =B3&D3
    Then your vlookup would be...
    =VLOOKUP($C$19&$D$19,$E$2:$S$15,MATCH(F19,$E$2:$S$2,0),0)

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Input based on three values and lookup the corresponding month number.

    I cannot use MATCH eighter only Vlookup.
    why not? Is this a homework assignment?

    I truly do not understand why you cannot use sumproduct of index/match? They would both produce an answer that would be exactly the same as vlookup(), but would be far simpler to use. If your software can use the answer from a vlookup, I cannot see what it cannot use the answer from the others
    Last edited by FDibbins; 02-03-2014 at 12:10 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Data Input Form with number of line items based on user input
    By j_gideon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2013, 02:54 PM
  2. Look up month number within code based on 3 character month?
    By MCunningham in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2013, 04:08 PM
  3. Replies: 12
    Last Post: 02-08-2013, 02:26 PM
  4. Using text box input to lookup number and replace based on user input into new column
    By harl3y412 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2011, 03:15 PM
  5. Replies: 3
    Last Post: 09-25-2007, 10:26 AM

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