+ Reply to Thread
Results 1 to 3 of 3

Excel create “bars” or fill series of cells based on other cell value

  1. #1
    Registered User
    Join Date
    05-08-2015
    Location
    Gothenburg
    MS-Off Ver
    2013
    Posts
    7

    Excel create “bars” or fill series of cells based on other cell value

    Hi
    I want to create a automatically generated "timeline" as i fill a column with numbers. Lets say C4 gets the value of 5. Then I want D4:I4 to be either filled with a 1 (so I can use conditional formatting), or filled with a specific color. This should be the case for more than 300 rows, C4:C350. Is there a way to use normal formulas or do I need to write a macro. I need it to be as easily used as possible since a lot of people not used to work with macros should be able to use it.

    Capture.JPG

    Thanks in advanced
    /David

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Excel create “bars” or fill series of cells based on other cell value

    hi
    Considering that you have date in c4 paste this in d4 and pull it across the columns

    =IF($C4="",0,IF(AND($C4>0,COUNT($C4:C4)<=$C4),COLUMN(A4),""))
    Punnam

  3. #3
    Registered User
    Join Date
    05-08-2015
    Location
    Gothenburg
    MS-Off Ver
    2013
    Posts
    7

    Re: Excel create “bars” or fill series of cells based on other cell value

    Hi
    Thank you but I got another solution proposition that worked really fine.

    How it was solved:
    -Select the range you want to be colored, i.e. D4:M350. M depends on the max value your column C will have. In this example, I assumed that 10 will be the max value (D, E, F, G, H, I, J, K, L, M = 10 columns).

    -On the Home tab, click Conditional Formatting -> New Rule -> Format values where this formula is true

    -Enter this formula:
    =COLUMN(D4)-COLUMN($C4)<=$C4

    -Click the Format button, choose your desired cell format and you're good to go.

+ 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] create a series of cell values from the concateneation of 2 lists based on a condition
    By dpen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2013, 07:15 AM
  2. Create new series based on cell value / ID
    By rdm1288 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-30-2011, 11:58 AM
  3. Create 2 Totals, One Based On Name And One Based On Name And Cell Fill Color
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-20-2008, 04:41 PM
  4. [SOLVED] Can I create a hyperlink to another page and then FILL series?
    By lreed11211 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-04-2006, 05:20 PM
  5. [SOLVED] Create a formula to fill in a date series without using
    By John in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2005, 01:05 PM

Tags for this Thread

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