• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If a cell contains a value then copy row to a new sheet.

JAeEM

New Member
Hi All,

Maybe someone can help me here. I'm trying to write a formula that copies a row over to the next tab based on the value of a cell. Any help would be greatly appreciated.
 
For better explanation try upload your sample file, and explain what your desired results
 
Is this the sort of thing you require?

The data source is a table. I have selected records on the basis of a flag and either transferred values cell at a time into another table or, alternatively, transferred the whole lot using a single multi-cell array formula.

The key is the named formula 'pointer' that contains the record indices of the records flagged to be copied. The array is consolidated using SMALL and INDEX is used to transfer the cell content.
 

Attachments

  • Conditional copy records.xlsx
    13.9 KB · Views: 5
this is the formula i'm currently using

(IF(ISNUMBER(SEARCH("ACQUIRED",CURATION!R576)),CURATION!A576:Q576,""))

"ACQUIRED" IS THE "TRIGGER" THAT COPIES THE DATA TO THE NEXT TAB.

Instead I would like to use any value in the cell and have the whole row copy to the destination sheet.
 
I would recommend starting with a helper field like my 'Flag'. Only when you have both the condition and the data reads from the destination working is it worth considering 'clever' tricks to remove helper ranges (normally by nesting formulas but named formulas provide an alternative approach to the nested formula). In your case Flag is defined by a relative formula

= ISNUMBER(SEARCH("ACQUIRED",CURATION!R576))
 
I have updated the miniscule file to demonstrate how the 'flag' field can be changed to a formula to capture pretty much any selection criterion you may choose. An advantage of working with helper ranges is, once you have the formula working correctly, everything downstream should go through without further intervention (assuming it was correct in the first place ;)).

Instead I would like to use any value in the cell
I am not sure what this is getting at. Could you explain?
 

Attachments

  • Conditional copy records.xlsx
    14.8 KB · Views: 3
Back
Top