+ Reply to Thread
Results 1 to 9 of 9

Finding the lowest values within a range and add cell to a formula

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Finding the lowest values within a range and add cell to a formula

    Here's one that's sure to test a few people out there.


    I have a parts list that is divided into the different suppliers and the different part types.

    What I want is to be able to click a button and a formula will find the lowest price within the range and then add that cell to a formula that will calculate the lowest price for an entire collection of the parts.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Finding the lowest values within a range and add cell to a formula

    I for one would be tested , but it would make it slightly easier if we could see your data setup

    Please provide a small sample workbook of what you have a and what you expect.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Finding the lowest values within a range and add cell to a formula

    Pls find attached an example of what I would like to do

    I have made a note of the functionality i'm asking for within the sheets in the workbook.

    There are 2 sheets with 2 pieces of functionality - I separated them so as to cause less confusion but I would like them both to work together if possible.

    There is formula already in the second sheet however I do not know how to incorporate that into the same sheet as the first section.
    Attached Files Attached Files

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Finding the lowest values within a range and add cell to a formula

    Sorry this has taken awhile, I have been away...

    Personally I do not see a need for a macro when this can be done with formulas...

    Here's my 2 cents....

    Conditional formatting in range B2:D15

    Formulas in G2:G6 and H2:H6
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Finding the lowest values within a range and add cell to a formula

    That is brilliant ... but can you tell me what the conditional formatting is that you used ?
    How do I see that ?

    because my ranges will be in different cells to those in the workbook you posted back so how do I match the conditional formatting that you used ?

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Finding the lowest values within a range and add cell to a formula

    I'm glad this will work for you

    Basically doing a match, looking at D2 and matching it against the range H2:H6.

    I see you are using 2003 as I have 2007 so don't have the UI if front of me, but this tutorial should help. What is Conditional Formatting?

    1. Select the cells B2:D15
    2. On the menu bar, choose Format>Conditional Formatting
    3. For the conditional formatting I used =MATCH($D2,$H$2:$H$6,0)

    And here is another site which can lead you to more stuff within conditional formatting

  7. #7
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Finding the lowest values within a range and add cell to a formula

    thanks ... I think I understand it.

    The only other questions I have are:

    If I have my ranges setup with rows and columns BETWEEN them to separate them will that still work ? Would I still include the ENTIRE range block in the formula and just substitute the one cell value as you have done ?
    ie: part a = range B2:B6; part b = range b8:b14 etc etc


    Will this work with ranges separated over multiple columns and again do I include the entire range block ?
    ie: part a = range B2:B6; part b = range E5:e9
    (the reason for this second one would be prices from a different company to be setup in a second separate column range.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Finding the lowest values within a range and add cell to a formula

    My first impression is to say no problem, but when you say different prices, therefore, different columns, I would have to see your data setup and what you want from the different prices.

    I would also say, just dive in a give it a try, but if you get over your head please post a sample here and I would be happy to take a look.

  9. #9
    Registered User
    Join Date
    11-07-2009
    Location
    australia
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Finding the lowest values within a range and add cell to a formula

    I'll give it a try and post back if I have troubles.

+ 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