+ Reply to Thread
Results 1 to 5 of 5

Rept formula with Negative Values

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,742

    Rept formula with Negative Values

    I have set up a REPT function to show a stencil bar. However if value in Col A is negative, I comes up with #value!

    I would like to show a downward facing bar in red for negative values

    It would be appreciated if someone could advise me on how to overcome this
    Attached Files Attached Files
    Last edited by Howardc1001; 12-06-2019 at 11:53 PM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,840

    Re: Rept formula with Negative Values

    I don't know what a "downward facing bar" is, but you could put something like this in the formula:
    =IF(A3<0,"_",REPT("|",A3/10000))
    and in Conditional Formatting, have something like:
    =A1<0
    and if true, format red.

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Rept formula with Negative Values

    Try with in "b1"
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,742

    Re: Rept formula with Negative Values

    Thanks Greg-This is perfect

  5. #5
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2021
    Posts
    2,742

    Re: Rept formula with Negative Values

    Thanks for the help Atul

+ 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] LOOKUP REPT one row not updating
    By rayted in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2019, 07:29 AM
  2. [SOLVED] Repeating RANDBETWEEN with REPT?
    By Speshul in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2014, 04:24 PM
  3. Use of special characters with rept function
    By ibexcel in forum Excel General
    Replies: 5
    Last Post: 06-18-2014, 08:01 AM
  4. REPT function and blank cells
    By erinvking in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-18-2012, 12:09 PM
  5. Substititue and REPT
    By mobycane in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-06-2011, 04:30 AM
  6. Combining =REPT and =INT
    By brendan1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2008, 06:35 PM
  7. Replies: 4
    Last Post: 09-26-2005, 06:05 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