+ Reply to Thread
Results 1 to 7 of 7

help with updating formula

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

    help with updating formula

    HI all

    I Need helping fixing up an formula that one of the guys on here helped me with mths ago.

    i have the same supplier name in both column "N" & "P".
    1 needs top say UNI FIRE and they other should say FIREPLUMB at the moment they both say UNI FIRE. they both have the sell price and that's the problem. How do I fix this

    thanks for your help with this
    Attached Files Attached Files

  2. #2
    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,529

    Re: help with updating formula

    I added a helper row 5:

    in B5

    =IF(B2="PRICE",B4+COUNTIFS($B$2:B$2,"PRICE",$B$4:B$4,B4)*0.0001,"")

    in N4

    =INDEX($B$1:$M$1,MATCH(SMALL($B5:$M5,1),$B$5:$M$5,0))

    in O4

    =INDEX($B$4:$M$4,MATCH(SMALL($B5:$M5,1),$B$5:$M$5,0))

    in P4

    =INDEX($B$1:$M$1,MATCH(SMALL($B5:$M5,2),$B$5:$M$5,0))


    in Q4

    =INDEX($B$4:$M$4,MATCH(SMALL($B5:$M5,2),$B$5:$M$5,0))
    Attached Files Attached Files

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

    Re: help with updating formula

    Another option.
    The following array entered formula* will work PROVIDING the order of price and supplier is reversed in N1:S1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    After activating this formula in O4 press Ctrl+C to copy then select Q4 and press Ctrl+V to paste paste into S4.
    Let me know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: help with updating formula

    Quote Originally Posted by JeteMc View Post
    Another option.
    The following array entered formula* will work PROVIDING the order of price and supplier is reversed in N1:S1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    *Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    After activating this formula in O4 press Ctrl+C to copy then select Q4 and press Ctrl+V to paste paste into S4.
    Let me know if you have any questions.
    Hi JeteMc

    Thanks but when I fill down this happens

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

    Re: help with updating formula

    Filling down will require locking both the column and row references in INDEX as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Here is the file with the modification applied.
    Let me know if you have any questions.
    Attached Files Attached Files

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

    Re: help with updating formula

    Quote Originally Posted by JeteMc View Post
    Filling down will require locking both the column and row references in INDEX as in:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Here is the file with the modification applied.
    Let me know if you have any questions.
    thanks that work

    why do I have to do this - Array entered formulas are activated by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    why cant I just copy and paste or just type in back in. I tried to just add the $ sign where needed and it didn't like that

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

    Re: help with updating formula

    My understanding is that once you type something into the formula, such as a $ sign, that puts it back in edit mode so that it has to be reactivated. If you just push enter then the formula activates as a regular formula, so to again activate the formula as an array entered formula you need to go through the CSE protocol. After the formula has been activated as array entered, it will copy in that manner. There are probably some members that could give you a better explanation.
    To see the difference between how the formula behaves as a regular formula and an array entered formula, put the formula in edit mode by pressing F2, then press enter and run the Evaluate Formula from the formula tab. Next put the formula back in edit mode and activate with CSE. Now run evaluate formula again.
    If we have resolved the question about supplier names, please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. Of course let me know if you have any questions. I hope that you have a blessed day.

+ 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 updating a formula
    By PMO@TrinityHealth in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-14-2013, 10:10 AM
  2. Help with automatic chart updating/auto updating today function
    By Tux2424 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-26-2012, 04:45 PM
  3. Formula not updating
    By Albatros in forum Excel General
    Replies: 5
    Last Post: 12-02-2011, 12:13 AM
  4. Formula's not updating
    By dandavis1 in forum Excel General
    Replies: 3
    Last Post: 08-03-2011, 06:27 AM
  5. Formula updating
    By Josephbarker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2010, 02:41 PM
  6. If formula not updating
    By oliver79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2008, 06:39 PM
  7. Formula Not Updating Help Thanks
    By chasecompany2 in forum Excel General
    Replies: 3
    Last Post: 04-20-2006, 01:10 PM
  8. Formula not updating
    By Sy. in forum Excel General
    Replies: 1
    Last Post: 01-31-2006, 12:45 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