+ Reply to Thread
Results 1 to 22 of 22

Pulling a column header based on a cells lowest value

  1. #1
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Pulling a column header based on a cells lowest value

    Hi -

    I'm wondering if someone can help me out. I have a table that has carrier name and below the name is the various prices. Some carriers will have "N/A" if they do not service certain regions. I'm trying to find a way that will review all the rates and provide to me the carrier name that offers the cheapest rate. I've tried to ways to accomplish this but I'm getting an error.

    1st way was
    Please Login or Register  to view this content.
    In which cell c87 was created to pull the minimum rate.

    2nd way was
    Please Login or Register  to view this content.
    Both ways are giving me N/A. Is it because some of the values in my table have "N/A"?

    Any help is greatly appreciated.

    Also, is there a way to pull the lowest rate from a specific group of carrier, for example pull the lowest rate out of Aetna, Cigna, or United?
    Last edited by kcgojnur; 08-14-2017 at 12:39 PM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Thanks for the help. I have attached the document.
    Last edited by kcgojnur; 08-14-2017 at 12:38 PM.

  4. #4
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Please see attached for better explanation.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    See the attached file.

    The yellow cells are the min value of the name.

    After that the min of all names. (with match).

    After that the name of the min value (with indirect and adres).

    See the attached file.

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Pulling a column header based on a cells lowest value

    For the overall min() value:
    regular formula in B10
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for the selected carriers: {Athna,Cigna and United}
    Array formula. **Must be entered with Ctrl+Shift+Enter key combination.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula to return carrier:
    regular entered in C10 and copy down to C11
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Please see attached file
    v A B C D E F G H I J K
    1 Monthly Active Premiums
    2 Aetna Cigna Dean Geisinger Health Net IBC Kaiser GHC United UPMC
    3 Bronze Plus 1293.55 1162.53 N/A N/A 973.17 1097.81 804.02 N/A 1372.93 N/A
    4 Silver 1390.99 1184.69 N/A N/A 1364.2 1371.97 801.99 N/A 1337 N/A
    5 Gold 1744.3 1540.41 N/A N/A 768.03 1662.91 1050.93 N/A 1679.85 N/A
    6 Platinum 2004.34 1747.48 N/A N/A 1905.34 1822.53 1162.5 N/A 1893.68 N/A
    7
    8
    9 Lost Cost Carrier
    10 Lowest rate 768.03 Health Net
    11 Aetna 1162.53 Cigna
    12 Cigna
    13 United
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Thanks for your help on this one!
    Last edited by kcgojnur; 08-14-2017 at 03:22 PM.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    Maybe you can explain if the offered solution(s), match your earlier question.

    for the second question you will get better help if you add a small exel file, without confidential information.

  9. #9
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Yes, the offered solutions answered my initial inquiry. Unfortunately, there has been additional requirements added resulting in an updated question.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    Please don't delete the question (or change the Original question). It makes the offered solutions not usefull for other forummembers.

  11. #11
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Thanks for the guidance oeldere. I will not modify this discussion.

  12. #12
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Hello -

    This question has been modified slightly. I have a work sheet in which I need to find the lowest rate among multiple criteria.

    Cell B1 is designated to provide a response of 1-22.

    I'm looking to see how I can pull the lowest silver rate among Aetna, IBC or UHC if cell B1 is either 7 or 15 if it not 7 or 15 we pull the lowest rate

    if cell B1 is 7 or 15 then give me the lowest rate of silver prices for Aetna and UHC.
    Attached Files Attached Files
    Last edited by kcgojnur; 08-14-2017 at 04:11 PM.

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    B12=if(or($b$1=7,$b$1=15),min($b$6,$j$6),min($b$6:$k$6))
    Last edited by oeldere; 08-14-2017 at 04:39 PM. Reason: changed ; into ,

  14. #14
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    When I plug this into my actual worksheet it seems to only pull the lowest silver if not rating band 7 or 15. I'm looking to pull the lowest rate over all if it does not meet the 7 or 15 criteria.

    It works great when meeting the 7 or 15 criteria.

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    if cell B1 is 7 or 15 then give me the lowest rate of silver prices for Aetna and UHC.
    B12=if(or($b$1=7,$b$1=15),min($b$6,$j$6),min($b$6:$k$6))

    so the formule takes if b1=7 or b1 = 15 the lowest of Aetna (b6) and UHC (K6).

    If not (so for all other options (exept 7 or 15)) it takes the overall lowest price.

    What is counted wrong?

    If this is not the right, formula, add an small excel file with differant options and please also add the expected result in the file (manualy)

  16. #16
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    I have included expected response in rows 15 and 16.
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    Your explaination in your file

    If B2 = 7 or 15 the rate should be 1337
    If B2 is not 7 or 15 the rate should be 8011.99 (Kaiser Bronze Plus)

    The formula needs to look at B1

    I see no 8011.99 in the file, what i see is Kaiser 801,99 (but that is Bronze Plus).

    Bronze Plus is no silver, so that looks a wrong statement to me.

    A kind of confusing.

  18. #18
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    That was a typo on my part. In any event the formula is only pulling the lowest silver rate. Any suggestions on how to modify to where if it's not 7 or 15 it pulls the overall lowest rate? You indicated the formula needs to look at B1 which it currently is.

  19. #19
    Registered User
    Join Date
    05-15-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    67

    Re: Pulling a column header based on a cells lowest value

    Please disregard. It seems to have worked once the 2nd array was updated. Thanks so much for your help on this one
    Last edited by kcgojnur; 08-14-2017 at 05:44 PM.

  20. #20
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    Gold 768,03 is the over all lowest price.

    That is the right answer?

  21. #21
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Pulling a column header based on a cells lowest value

    Just to offer a more generally-useful version, note this ARRAY FORMULA that looks up the columns and rows instead of hard-coding them:
    *Always press CTRL+SHIFT+ENTER to confirm entry after pasting or editing an ARRAY FORMULA in the Formula Bar.
    Please Login or Register  to view this content.
    Like oeldere, I'm not sure what "secondary" return you want. This formula returns the lowest rate in the ENTIRE table (768.03) if B1 is NOT 7 or 15.

    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee
    Last edited by leelnich; 08-15-2017 at 03:58 AM.

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Pulling a column header based on a cells lowest value

    @leelnich

    Maybe it is not nessecary in this case, but I advice you to work with the $ signs. It avoids problems when the formula is copied (down or across).

    Oeldere instead of oledere

+ 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. Count blank cells right to left where range is based on column header
    By makmood in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-16-2016, 08:18 PM
  2. find the lowest value from column B based on duplicate item at column A
    By dare2join in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-24-2016, 12:50 AM
  3. Using Lookup? Index match? to populate cells based on column header
    By NoExcelSkills17 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-15-2015, 03:50 PM
  4. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  5. [SOLVED] Return the lowest value in one column based on a text search in a different column.
    By Juliana33 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-11-2012, 09:58 AM
  6. Replies: 1
    Last Post: 10-01-2012, 12:29 PM
  7. Replies: 6
    Last Post: 07-26-2012, 06:34 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