+ Reply to Thread
Results 1 to 9 of 9

IF formula pattern

Hybrid View

  1. #1
    Registered User
    Join Date
    10-28-2013
    Location
    Croatia
    MS-Off Ver
    Excel 2010
    Posts
    9

    IF formula pattern

    Guys,
    I have the following problem:
    When i drag these
    =IF(B4>0;A4,)
    =IF(c4>0;A4,)
    =IF(d4>0;A4,)
    down i get:
    =IF(B7>0;A7,)
    =IF(c7>0;A7,)
    =IF(d7>0;A7,)
    and so on, it increments by 3.
    Can someone please help me and tell me how to drag it down but so it can be like this:
    =IF(B5>0;A5,)
    =IF(c5>0;A5,)
    =IF(d5>0;A5,)

    and so on until 500....

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF formula pattern

    Hi,

    Maybe this in your first cell and drag down (not in groups of three, though; just this):

    =IF(INDEX(INDEX(B:D;;IFERROR(1/(1/(MOD(ROWS($1:1);3)));3));3+ROUNDUP(ROWS($1:1)/3;0))>0;INDEX(A:A;3+ROUNDUP(ROWS($1:1)/3;0)))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    10-28-2013
    Location
    Croatia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: IF formula pattern

    Quote Originally Posted by XOR LX View Post
    Hi,

    Maybe this in your first cell and drag down (not in groups of three, though; just this):

    =IF(INDEX(INDEX(B:D;;IFERROR(1/(1/(MOD(ROWS($1:1);3)));3));3+ROUNDUP(ROWS($1:1)/3;0))>0;INDEX(A:A;3+ROUNDUP(ROWS($1:1)/3;0)))

    Regards

    Thank you very much.

    I believe this works.

    Just, how do i do it for a single cell etc.

    c4,b4,d4

    and then drag it down to 500 to be like c5,b5,d5 etc....

    cheers!
    Last edited by blaugrana9; 10-28-2013 at 06:26 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    09-15-2011
    Location
    Chennai, India
    MS-Off Ver
    Excel 2010
    Posts
    436

    Re: IF formula pattern

    Please try this file.
    Attached Files Attached Files
    Last edited by ramananhrm; 10-28-2013 at 06:31 AM.
    Please click 'Add reputation', if my answer helped you.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF formula pattern

    To whom are you replying?

    Regards

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF formula pattern

    My approach would be different: use ROW to build indirect references that increment in threes.

    E1:E500 = IF(INDIRECT(CHAR(66+MOD(ROW()-1,3))&TRUNC(ROW()/3 + 2/3,0)) > 0, INDIRECT("A"&TRUNC(ROW()/3 + 2/3,0)))
    You'll have to change the constants if you use a different output range, like E5:E505 or something.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF formula pattern

    "Just, how do i do it for a single cell etc."

    Just enter that formula in your first cell and then copy down.

    Regards

  8. #8
    Registered User
    Join Date
    10-28-2013
    Location
    Croatia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: IF formula pattern

    I used XOR LX's solution and it works perfect!

    As for the "Just, how do i do it for a single cell etc.", my actual question was how to continue a pattern of b4,c4,d4 to b5,c5,d5 to b6,c6,d6 and etc..you misunderstood my question xor lx.

    But i figured it out so thanks a lot XOR LX! and everbody else for your contribution!

    Cheers!

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF formula pattern

    Ah, apologies for not understanding your follow-up question.

    And you're welcome!

+ 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] Copying a formula with that follows a pattern
    By Animosity in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-22-2013, 12:19 PM
  2. [SOLVED] Formula pattern recognition
    By cjchris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2013, 12:08 PM
  3. copying formula pattern
    By marvinks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2007, 12:29 PM
  4. [SOLVED] Pattern Formula?
    By sixwest in forum Excel General
    Replies: 3
    Last Post: 09-13-2005, 12:05 PM
  5. Generating a pattern using formula
    By anita1999 in forum Excel General
    Replies: 7
    Last Post: 06-03-2005, 09: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