+ Reply to Thread
Results 1 to 3 of 3

Lookup up values in multiple possible columns based on a list of rows and a list of column

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Lookup up values in multiple possible columns based on a list of rows and a list of column

    Excel Gurus,

    I need some help. I'm trying to create a power and cooling calculator that imports the most current data from the department of energy electricity costs by state and sector table and then lets me use drop downs in order to create a multidimentional lookup.

    source:
    http://www.eia.gov/electricity/month...?t=epmt_5_06_a

    I use that URL and grab the main table in a web query into a dedicated sheet in a workbook, set to update on file open.

    From there I have a cover sheet that performs a list from the items in the census division (column A) in one cell and a list of the sectors across the top from a third sheet. (I chose to create a list on a third sheet so I don't have double spaced responses in the drop down that I get when I try a horizontal list validation on import for the energy sectors)

    Anyhow

    What I'm going for here on the cover sheet is drop down and select maryland. Then drop down and select Industrial. And the third cell return the cost of electricity based on maryland's current Industrial cost per kWhr as an example.

    Thanks in advance for any help the group can provide.

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Lookup up values in multiple possible columns based on a list of rows and a list of co

    Provide the sample workbook and the wanted result bro... we don't do imagining the problem
    thank u
    Azumi

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Lookup up values in multiple possible columns based on a list of rows and a list of co

    I'd use Data->Data Validation for the drop downs.

    #1 Choose List, and the list of States & Regions for source.

    #2 Choose List, and the list of Sectors for the source

    for the kWhr, INDEX(..MATCH( can retreive it.

    INDEX(the table of kWhrs,MATCH(drop down #1, the list states & regions to the left of the table, 0),MATCH(dropdown#2,list of sectors at top,0))

    In my data pull from the website, with drop down #1 in B3, drop down #2 in C3, and the kWhr in D3 I put:

    =INDEX(Sheet1!B4:F65,MATCH(Sheet2!B3,Sheet1!A4:A65,0),MATCH(Sheet2!C3,Sheet1!B1:F1,0))


    kWhr.xlsx

+ 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. Replies: 9
    Last Post: 10-14-2013, 07:55 PM
  2. Replies: 1
    Last Post: 04-20-2013, 02:45 PM
  3. Lookup Multiple Values From a List Based on One Criteria
    By jjcgirl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 03:28 PM
  4. Replies: 5
    Last Post: 07-28-2011, 04:24 AM
  5. Change a Column list into multiple rows & columns
    By angelface in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2006, 09:30 PM

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