+ Reply to Thread
Results 1 to 4 of 4

Extracting & Converting to Zero

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2003-2019
    Posts
    794

    Extracting & Converting to Zero

    Hi,

    I have a list which I want to extract exactly which I have mentioned in 'Result' worksheet as enclosed from 'Data' worksheet.

    1.If Column I is greater than 1 Lac,then no removable of data from Column I
    2.If Column J is greater than 1 Lac and K is blank then remove data from J column i.e convert to zero,else no change if K column contains any number

    Hoping a positive response as usual.
    Attached Files Attached Files
    Last edited by paradise2sr; 01-12-2020 at 08:20 AM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,065

    Re: Extracting & Converting to Zero

    Hello paradise2sr,

    This could be done with Standard Formulas or do you need it to be done in VBA? It is good to remember that Standard Excel Functions are most of times better to use than VBA.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    Excel 2003-2019
    Posts
    794

    Re: Extracting & Converting to Zero

    I want to know both if possible.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2010/2019
    Posts
    8,639

    Re: Extracting & Converting to Zero

    As to a formula based proposal:
    1. A helper column is added to the Data sheet which determines whether or not to convert the value in column J to zero and which is populated using: =AND(J2>100000,K2="")
    2. The Trade Name column is populated using: =IFERROR(INDEX(Data!B$2:B$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$1))/(Data!$I$2:$I$15>=100000),ROWS($A$1:$A1))),"")
    3. The Good Sales column is populated using: =IFERROR(INDEX(Data!I$2:I$15,AGGREGATE(15,6,(ROW($A$2:$A$15)-ROW($A$1))/(Data!$I$2:$I$15>=100000),ROWS($A$1:$A1))),"")
    4. The Closing Balance column is populated using: =IF(N2="","",IF(INDEX(Data!L$2:L$15,MATCH(N2,Data!B$2:B$15,0))=TRUE,0,INDEX(Data!J$2:J$15,MATCH(N2,Data!B$2:B$15,0))))
    5. The last column (unnamed) is populated using: =IF(N2="","",INDEX(Data!K$2:K$15,MATCH(N2,Data!B$2:B$15,0)))
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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