+ Reply to Thread
Results 1 to 6 of 6

Auto fill cells based on criteria

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Auto fill cells based on criteria

    dear friends,

    Manually data is included into Cells A1, A2 & A3 and the results appear in cells B1, B2 & B3 respectively.
    only 4 types of data are included, they are "", "-", "C" and any letter that is <> "C".

    my requirement is;

    1.) if any of the data entered in cells A is either "", "-" or "C", then data in cells B is blank (""). EX: A1="", A2="C" & A3="C", then all 3 cells in B will be "".
    2.) if any cell in A consists <>"C", then the remaining cells in B should also appear same as in A against it's respective cell. BUT, if there is a "" cell in A, then the cell B should show this as "-". EX1: if A1="C", A2="G" & A3="", then cells in B will be B1="C", B2="G" & B3="-", EX2: if A1="", A2="" & A3="H", then cells in B will be B1="-", B2="-" & B3="H",

    appreciate your assitance and thank you very much for same.

    Regards
    Rizvi

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Auto fill cells based on criteria

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 pictures.

    Please read the yellow banner at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Auto fill cells based on criteria

    I apologise for same Glenn,
    plse find attached a sample.
    rgds Rizvi
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Auto fill cells based on criteria

    No need to apologise. It's just easier with a sheet to work from.

    In B1, copied down to B3:

    =IF(SUMPRODUCT(($A$1:$A$3="")+($A$1:$A$3="-")+($A$1:$A$3="C"))=3,"",IF(A1&""="","-",A1&""))
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Auto fill cells based on criteria

    Works like a charm, Glenn!
    Appreciated mate, thank you very much!
    rgds
    rizvi

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Auto fill cells based on criteria

    You're welcome and thanks for the rep.

+ 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. Auto fill cells based on numerical value.
    By tbush33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2017, 09:21 PM
  2. auto fill of formulas that based on cells
    By albert28 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-07-2014, 03:12 AM
  3. auto fill cells based on 1st cell
    By teagranny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 09:36 AM
  4. Auto fill worksheet cells based on certain criteria w/out leaving blank rows.
    By Txprospector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2014, 07:35 AM
  5. [SOLVED] Auto fill cells based if there is something there or not
    By TlgKill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-09-2013, 04:42 PM
  6. Replies: 14
    Last Post: 04-19-2011, 02:22 PM
  7. Replies: 3
    Last Post: 01-26-2007, 06:37 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