+ Reply to Thread
Results 1 to 3 of 3

Thread: Need quick "if" function

  1. #1
    Cowtoon
    Guest

    Need quick "if" function

    How do I get a value to repeat itself if it's under or over a certain value.

    for example. Is a value is greater than 5 in one cell, then I want to
    repeat it in another column of cells
    I want to do the same for when a value is less than say, 5.1 ... and have it
    repeat in a different column of cells.

    What's the easiest way to do that?
    Thanks so much. Diana



  2. #2
    Forum Guru VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    12,010
    Not sure if I follow your question.

    Think you want to show a number as long as it's not 5

    If that's correct say put this forumla in B2 and drag to what every cells you want to populate. enter number to repeat in cell A1

    =IF($A$1<>5,A1,"")

    If you want to repeat the value in the same cell then use where 6 is the number of times you want it to repeat

    =IF($A$1<>5,REPT(A1,6),"")

    VBA Noob

  3. #3
    Bob Phillips
    Guest

    Re: Need quick "if" function

    =if(A1>5,A1,"")

    etc.

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "Cowtoon" <noemailaddress@nowhere.com> wrote in message
    news:OGEINybsGHA.4264@TK2MSFTNGP04.phx.gbl...
    > How do I get a value to repeat itself if it's under or over a certain

    value.
    >
    > for example. Is a value is greater than 5 in one cell, then I want to
    > repeat it in another column of cells
    > I want to do the same for when a value is less than say, 5.1 ... and have

    it
    > repeat in a different column of cells.
    >
    > What's the easiest way to do that?
    > Thanks so much. Diana
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0