+ Reply to Thread
Results 1 to 16 of 16

help with creating a formula

  1. #1
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    help with creating a formula

    Hi All

    I don't know how to create this formula. So this is what i want to do

    I have used the min formula to put the cheapest price in R3 so now i want to own the name of that supplier who had the cheapest price to go into Q3. How do i please this please.

    thank you to everyone in advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,611

    Re: help with creating a formula

    In R3:

    =MIN(C3,F3,I3,L3,O3)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,511

    Re: help with creating a formula

    Try

    =INDEX($A$1:$O$1,MATCH(R3,$B3:$P3,0))

    Note ranges are offset as you have merged cells for the supplier : ideally you should avoid using merged cells.

    If you have two (or more) equal minimum prices, this will return the first supplier which matches.

  4. #4
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    Hi John

    Your formula worked once i removed the merged cells

    thank you for you help.

  5. #5
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    Quote Originally Posted by JohnTopley View Post
    Try

    =INDEX($A$1:$O$1,MATCH(R3,$B3:$P3,0))

    Note ranges are offset as you have merged cells for the supplier : ideally you should avoid using merged cells.

    If you have two (or more) equal minimum prices, this will return the first supplier which matches.
    John

    How can i get it to return more then then 1 supplier if this happens

    new formula = =INDEX($C$1:$O$1,MATCH(R4,$C4:$O4,0))

    thanks

    Graeme

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,511

    Re: help with creating a formula

    Unmerging the cells (in this case) will still give the same results as the merged cells as the supplier is always in a cell one position (column) to the left of the price e.g B1 vs C2 .

    If you have the answer you require could you please mark the thread as "solved" ("Thread Tools" at top of first post).

    Thank you.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,511

    Re: help with creating a formula

    If you have more than one supplier, how do want it to appear on the report: one the next row of the supplier column?

  8. #8
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    Quote Originally Posted by JohnTopley View Post
    If you have more than one supplier, how do want it to appear on the report: one the next row of the supplier column?
    not sure as long as i can see the other suppliers names

  9. #9
    Registered User
    Join Date
    10-09-2015
    Location
    Kitchener ONT
    MS-Off Ver
    2013
    Posts
    78

    Re: help with creating a formula

    drop into column Q3
    =IF(R3=C4,$B$1,IF(R3=F4,$E$1,IF(R3=I4,$H$1,IF(R3=L4,$K$1,IF(R3=O4,$N$1," "))))) this will give the proper response for the Min Function result in Column R3

    drop into Column R3
    =MIN(C3,F3,I4,L3,O3)


    might suggest making your sheet a table under the code price % dif titles,will make it so the formulas auto-populate

    Enjoy !!

    (an easier way to do this would be to script it in VBA to run everytime you add a line it will run the formulas more definitely or accurately just from the nature of how the code can be defined. Your going to get an error or false reading if 2 prices are the same this way but it should work just fine for now)

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,511

    Re: help with creating a formula

    Try in Q3

    =IFERROR(INDEX($A$1:$P$1,SMALL(IF($A$3:$P$3=$R$3,COLUMN($A$1:$P$1)-COLUMN($A$1),""),ROWS($A$1:A1))),"")

    Enter with CTRL+SHIFT+ENTER

    Copy down

  11. #11
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    Hi JohnTopley

    How do i make a formula to find the 2nd cheapest price

    thanks

    Graeme
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,736

    Re: help with creating a formula

    Paste this in N3:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,511

    Re: help with creating a formula

    This will give supplier (of 2nd cheapest)

    =INDEX($B$1:$J$1,MATCH($N3,$B3:$J3,0))

  14. #14
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    thanks johntopley
    sorry i also forgot to ask what formula i put in the "price column" to put the 2nd cheapest proice
    Last edited by grjnmiller; 03-24-2016 at 04:07 PM.

  15. #15
    Registered User
    Join Date
    02-20-2016
    Location
    australia
    MS-Off Ver
    2016
    Posts
    11

    Re: help with creating a formula

    Quote Originally Posted by JohnTopley View Post
    If you have more than one supplier, how do want it to appear on the report: one the next row of the supplier column?
    sorry to ask this but I now need to know the answer to your question.

    as you can see I now have 2 suppliers with the same price. I need one in each column
    Attached Files Attached Files

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,611

    Re: help with creating a formula

    @SMJ2005 - Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ 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. Need help with creating an if/then/or formula
    By AFNBroadcaster in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-22-2015, 12:21 AM
  2. [SOLVED] Use an existing cell formula for creating a new more complex formula
    By dubcap01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2014, 07:41 AM
  3. Help Creating this Formula (Please)
    By jamesjunkers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2014, 04:45 PM
  4. Replies: 1
    Last Post: 11-21-2012, 02:03 AM
  5. Need Help Creating a Formula
    By jmiller7 in forum Excel General
    Replies: 1
    Last Post: 01-13-2011, 07:28 PM
  6. creating a formula
    By wwoody in forum Excel General
    Replies: 3
    Last Post: 01-11-2006, 03:14 AM
  7. creating a formula:Need Help
    By Scott in forum Excel General
    Replies: 3
    Last Post: 04-19-2005, 01:07 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