+ Reply to Thread
Results 1 to 4 of 4

Autofilltering and applying formula

  1. #1
    Registered User
    Join Date
    06-10-2019
    Location
    India
    MS-Off Ver
    office14
    Posts
    2

    Autofilltering and applying formula

    Hi All,

    I have cross posted the below question on another Excel Forum as well.Not able to include the link to orginal forum since posting for first time. Have not received any response there . Hence posting here.

    Would request someone to guide me on below.


    I have three columns. Column A - ID , Column B - Price and Column C = Variation In Price.

    I need to first filter column A for one ID, then apply the formula in the second visible cell in Column C not counting the header - =IF(1-(B3/$B$2)=0,"OK",-1*(1-(B3/$B$2))) and drag this formula across all visible cells for all the duplicate IDs.

    I need to do this for every ID. currently it is happening this way. How can we automate this procedure.Can Somebody please guide me on below



    Material Code Unit Price in FC Varaition in Base Price
    000000000001000392 45.77
    000000000001000392 45.77 =IF(1-(B3/$B$2)=0,"OK",-1*(1-(B3/$B$2)))
    000000000001000392 45.77 =IF(1-(B4/$B$2)=0,"OK",-1*(1-(B4/$B$2)))
    000000000001000392 45.77 =IF(1-(B5/$B$2)=0,"OK",-1*(1-(B5/$B$2)))
    000000000001000392 45.77 =IF(1-(B6/$B$2)=0,"OK",-1*(1-(B6/$B$2)))
    000000000001000392 45.77 =IF(1-(B7/$B$2)=0,"OK",-1*(1-(B7/$B$2)))
    000000000001000392 45.77 =IF(1-(B8/$B$2)=0,"OK",-1*(1-(B8/$B$2)))
    000000000001000392 45.77 =IF(1-(B9/$B$2)=0,"OK",-1*(1-(B9/$B$2)))
    000000000001000393 10.16
    000000000001000393 10.16 =IF(1-(B11/$B$10)=0,"OK",-1*(1-(B11/$B$10)))
    000000000001000393 10.16 =IF(1-(B12/$B$10)=0,"OK",-1*(1-(B12/$B$10)))
    000000000001000393 10.58 =IF(1-(B13/$B$10)=0,"OK",-1*(1-(B13/$B$10)))

    Thank you

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Autofilltering and applying formula

    Please tell us on which other forum you cross posted.
    Thanks

  3. #3
    Registered User
    Join Date
    06-10-2019
    Location
    India
    MS-Off Ver
    office14
    Posts
    2

    Re: Autofilltering and applying formula

    MrExcel.com

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

    Re: Autofilltering and applying formula

    Hello mogss_04 and Welcome to Excel Forum.
    I believe this is the link.
    https://www.mrexcel.com/forum/excel-...tml?highlight=
    I suggest that you apply the following formula to C2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    For future reference you will usually get faster results if you upload a sample spreadsheet by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    I have included a sample file for you in this instance.
    Let us 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.

+ 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. Applying Formula Dynamically
    By sathishkm in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2018, 11:14 AM
  2. Applying a formula with a for loop
    By OMG_What in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-28-2013, 06:08 PM
  3. Help with applying if and or formula
    By djmatok in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-15-2012, 10:34 PM
  4. Macro: Applying formula to multiple cells in excel (formula editing)
    By city in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2012, 06:41 AM
  5. Applying If formula in more than one condition
    By anwitha in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-28-2011, 11:22 AM
  6. [SOLVED] applying formula
    By Pat N. in forum Excel General
    Replies: 1
    Last Post: 04-25-2006, 03:50 PM
  7. Applying formula when a particular value occurs
    By smurray444 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2006, 10:10 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