+ Reply to Thread
Results 1 to 7 of 7

adapting IF-formula

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Heemskerk, The Netherlands
    MS-Off Ver
    2010
    Posts
    4

    adapting IF-formula

    Hello everybody. I'm new here. I'm from the Netherlands. I have a problem.
    In the attachement you see in colom L a formula with a IF function including a NUMBER.IF function. All the "double" combinations must appear in colom L showed by the word "double". All the single combinations also must appear in colom L showed by the word "Single". The problem is: only the first of the double combination is showed by the word" double". I want the second also is showed by the word "double". How can I achieve that??

    Note, I have a dutch version of excel. IF= ALS(dutch) and NUMBER.IF= AANTAL.ALS(dutch)

    Thank you for helping me.

    greetings.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: adapting IF-formula

    In L2, put the $ in front of your range reference to lock the table. =IF(COUNTIF($J$3:$J$18,J2)>1,"double","single") then fill the formula

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: adapting IF-formula

    Hi, welcome to the forum

    You need to "absolute" you range before you copy it...
    =IF(COUNTIF(J2:J17,J2)>1,"double","single")
    needs to be...
    =IF(COUNTIF($J$2:$J$17,J2)>1,"double","single")

    This fixes/freezes the range so that when you copy it down, it does not adjust.

    Before you correct your formula, look at the formula in L2, then look at the formula in L3, L4 etc - see how the range changes each time?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-04-2015
    Location
    Heemskerk, The Netherlands
    MS-Off Ver
    2010
    Posts
    4

    Re: adapting IF-formula

    @Jiejenn and Fdibbins. Thank you for your help. It's working.

  5. #5
    Registered User
    Join Date
    05-04-2015
    Location
    Heemskerk, The Netherlands
    MS-Off Ver
    2010
    Posts
    4

    Re: adapting IF-formula

    Hello, the last step in this table is to filter al the red chassisnumbers in combination with the word"single".
    Also, i want to filter al the normal chassisnumbers(black text) in combination with the word"single"
    Red with single must be "fault".
    Normal text(black) with single must be "good" See the attachement.
    I have been puzzling with the formula CELL(colour) without any results.
    Is there a formula that can help me??
    Thank you for helping me.

    Greetings.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: adapting IF-formula

    Formulas cannot see color. What was the criteria for changing the color, maybe we can use that as a rule?

  7. #7
    Registered User
    Join Date
    05-04-2015
    Location
    Heemskerk, The Netherlands
    MS-Off Ver
    2010
    Posts
    4
    The red marked numbers are from another list then the normally marked numbers.

+ 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. Help with adapting formula destination to other cell
    By Triplesdd in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 05:00 PM
  2. [SOLVED] Adapting my Formula to incorporate a new rule.
    By JRidge in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 12-16-2013, 01:44 PM
  3. Adapting an IF formula..
    By Guygettinby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2011, 04:13 PM
  4. Adapting a Formula to fit new parameters
    By grey9192 in forum Excel General
    Replies: 2
    Last Post: 08-18-2010, 09:46 AM
  5. Adapting an array formula
    By sixwest in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2006, 03:40 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