+ Reply to Thread
Results 1 to 6 of 6

Populate a cell based on another cells condition

  1. #1
    Registered User
    Join Date
    05-11-2009
    Location
    SD, Ca
    MS-Off Ver
    Excel 2010
    Posts
    12

    Populate a cell based on another cells condition

    I am developing a chart where I would like only specific data to be viewed. or instance in one column i will have many cells populated with 0 and 1 cell populated with "2". I would like the chart to only populate the 2 but it populates all of the "0"s too. I need the cells to be blank so they do not populate in the chart but at the same time ther could be a condition where the 0 becomes a number and the 2 becomes a 0. Sorry if this is confusing but it is hard to write what I am looking for.

    Basically I would like VB statement that will look at a range of cells (T35:T136) and if within this range anything other then 0 is populated I would like a destination cell to be populated with that number, if 0 leave that destination cell blank

    I hope this makes sense.


    thanks Steve

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Populate a cell based on another cells condition

    Do you have a sample file that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Populate a cell based on another cells condition

    Let destination cells for T35:T136 is V35:V136.In V35 enter this and drag down.

    =IF(T35=0,"",T35).

  4. #4
    Registered User
    Join Date
    05-11-2009
    Location
    SD, Ca
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Populate a cell based on another cells condition

    Thank you for your help, attached is the file i am working with.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-11-2009
    Location
    SD, Ca
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Populate a cell based on another cells condition

    Thanks but this did not achieve the results i need. It is really hard to explain what I am looking for.

  6. #6
    Registered User
    Join Date
    05-11-2009
    Location
    SD, Ca
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Populate a cell based on another cells condition

    Thank you, I uploaded a file as you suggested.

+ 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.6.0 RC 1