+ Reply to Thread
Results 1 to 14 of 14

cell fill with condition

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post cell fill with condition

    I have attached my sample sheet.my requirement is under the customer name " UNIVERSAL " same row column "E" -TEX-105 & column "G" - SSP then column "H" should fill with 20/4.
    IF customer name any other & same row column "E" TEX-105 & column "G" SSP then column "H" should fill with 12/2.

    My sample sheet first page is my normal data & second sheet is my expected data,,pls make macro for this.thanks in advance..
    Attached Files Attached Files
    Last edited by johncena; 02-19-2012 at 12:32 AM.

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

    Re: cell fill with condition

    Pl run this "FilBlank" macro on the worksheet.
    Your views are welcome.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    kvsrinivasamurthy@ thanks million for your code.i have another problem now.if column "B & C" empty cells filled with above data then your code not giving correct answer..
    Last edited by johncena; 02-18-2012 at 05:39 AM.

  4. #4
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    kvsrinivasamurthy@ pls check this..
    Attachment 141982

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

    Re: cell fill with condition

    I could not follow your explanation fully.I have changed code . Pl vfy Now.



    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    no friend,same problem is there,,pls see my above attachment last two rows..that both cells should fill with 12/2 but it's fill one 20/4 & other 12/2,,after running your new code also same thing happens.

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

    Re: cell fill with condition

    I have just verified last two rows are filled with 12/2 only.
    Attach your file once again , if you have problem.

  8. #8
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    I have filled column"A,B,C empty cells..after filling that cells your macro not giving correct answer.if that cells are empty it's giving correct answer..but i want get same answer in both way.. here i have attached sample sheet again ,,
    Attached Files Attached Files

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

    Re: cell fill with condition

    Use this code.Pl try to give correct format data to reduce confusion and delay.

    Please Login or Register  to view this content.
    With regards.

  10. #10
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    kvsrinivasamurthy@ i'm very sorry if i wasted your time..i have provided two type of sample to u..my requirement is your macro should work with that both samplers..your last macro work with last sample but it's not work with first sample.pls help me.

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

    Re: cell fill with condition

    Now i am busy.I willcome back to you afterwords.Dont worry.
    Be happy.

  12. #12
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    no problem friend i can wait..pls do this for me..

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

    Re: cell fill with condition

    Pl see now .The macro works on both Sheet1 and Sheet3 also.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: cell fill with condition

    kvsrinivasamurthy@ thanks a lot friend,,u done a great job for me.it's work very well,,thanks a lot again.. :D

+ 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