+ 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
    MS Excel 2021 / 365
    Posts
    1,238

    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,113

    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
    MS Excel 2021 / 365
    Posts
    1,238

    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 2019
    Posts
    17,420

    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)

Similar Threads

  1. [SOLVED] Convert Variable Column Data Report To Stack The Data Into Just Three Columns
    By picton2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-21-2018, 08:23 AM
  2. Macro to convert 11 Columns Data Set to 14 Columns Database
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-17-2017, 07:32 AM
  3. [SOLVED] Typed data convert to columns
    By makinmomb in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-03-2015, 01:13 AM
  4. How convert data to columns?
    By minhphuong_humg in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-29-2013, 11:46 AM
  5. [SOLVED] How to automate, convert single column of data into two columns of data?
    By Dale Saukerson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2012, 09:53 PM
  6. Convert 1 row of data to columns
    By Mohoney in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-25-2005, 09:05 AM
  7. How do I convert some data in the row to columns?
    By Colin T in forum Excel General
    Replies: 4
    Last Post: 08-17-2005, 07:05 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