+ Reply to Thread
Results 1 to 6 of 6

Automating an IF function formula.

  1. #1
    Registered User
    Join Date
    05-03-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Automating an IF function formula.

    I have the following formula =IF(AND(G3=G2,BO3=BO2),"",BP3) where the G column is the client name and the BO column is the sub-service name and BP is the service name. As this formula is reliant on the client names and services being sorted alphabetically to work correctly, is there a simpler formula that doesn't rely looking on cell above but throughout the whole column to see if there any other duplicate values so that if I sort the spreadsheet it will still return the same values.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Automating an IF function formula.

    How about this?

    =IF(COUNTIFS(G:G,G3,BO:BO,BO3)>1,"",BP3)

  3. #3
    Registered User
    Join Date
    05-03-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Automating an IF function formula.

    Thanks cbatrody but it doesn't work. It only picked up some of the values but not all of them. Any other suggestions?

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Automating an IF function formula.

    Can you post a sample template of your workbook please?

  5. #5
    Registered User
    Join Date
    05-03-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    35

    Re: Automating an IF function formula.

    Here you go. I'm looking to put the new formula in column BQ.

    Excel Forum Posting (3).xlsx

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Automating an IF function formula.

    Hi,

    Try the following formula in BQ2:

    =IF(COUNTIFS(BP$2:BP2,BP2,G$2:G2,G2)>1,"",BP2)

+ 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. [SOLVED] Automating the formula
    By vikasaher in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-24-2012, 04:21 AM
  2. Automating multiple cells using a Stat/math function
    By val2009 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-27-2008, 04:09 AM
  3. automating a function
    By val2009 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-23-2008, 06:13 AM
  4. Automating Find and Replace function.
    By gsmonk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2007, 02:13 PM
  5. Automating Solver function
    By wanttolearn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-25-2007, 11:36 AM
  6. [SOLVED] Automating the Excel camera function
    By kaitain in forum Excel General
    Replies: 0
    Last Post: 03-02-2006, 12:30 PM
  7. Replies: 4
    Last Post: 02-10-2006, 11:35 AM
  8. [SOLVED] Automating the f9 (Calc Now) function key
    By Liz L :>) in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2005, 07:05 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