+ Reply to Thread
Results 1 to 5 of 5

Fill Cells based on next and or previous cells

  1. #1
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    Fill Cells based on next and or previous cells

    A1:A9 has Text data and name "Heads" is defined for this range

    B1, B2, B3 have dropdown lists referring "Heads" range.

    If i select B1 or B2 or B3, the next and previous cells OR two previous cells OR two next cells should be filled with the sequence from "Heads".

    ie. :

    If i select "Labour" in B2 cell, then B1 & B3 should show "Cement" & "Misc" respectively.

    A1 - Brick
    A2 - Sand
    A3 - Steel
    A4 - Cement
    A5 - Labour
    A6 - Misc
    A7 - Refreshments
    A8 - Transportation
    A9 - Electricity

    Workout Sheet is attached.
    Attached Files Attached Files
    Last edited by NBVC; 03-11-2009 at 09:05 AM. Reason: Requested by OP via PM

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    Re: Fill Cells based on next and or previous cells

    Is this what you are looking for..Check the attachemtn
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    Re: Fill Cells based on next and or previous cells

    Thanks for that, but possibly without using VB.

    I prefer to get the solution without VB.

    1. Is it possible to do without using VB?
    2. When "Brick" is selected in B2 & when "Sand" is selected in B3, B1 becomes blank - In both cases, B1 should show "Electricity".
    3. When Brick is selected in B3 & when "Elec" is selected in B2 "Runtime Error 1004"

    I prefer to get the solution without VB.

    Quote Originally Posted by Shijesh Kumar View Post
    Is this what you are looking for..Check the attachemtn

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Fill Cells based on next and or previous cells

    Not possible without VBA.. because the next time you pick from B1 or B3, the formula that we could provide would be overwritten with your selection and therefore be lost forever.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Forum Contributor
    Join Date
    02-27-2009
    Location
    Chennai, India
    MS-Off Ver
    Excel 2013
    Posts
    327

    Re: Fill Cells based on next and or previous cells

    Oh. Clear. Thanks.

    Quote Originally Posted by NBVC View Post
    Not possible without VBA.. because the next time you pick from B1 or B3, the formula that we could provide would be overwritten with your selection and therefore be lost forever.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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