[Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register]

Author Message
sriniwas67
General User

Joined: 05 Mar 2012
Posts: 10

 Posted: Mon Jul 16, 2012 9:35 pm    Post subject: Request for a formula to use in spreadsheet Request a code for adding new values only from 2nd spreadsheet or workbook while retaing the old values in sheet one or workbook 1. For eg, values in sheet 1 - .001,.014, .079, Values in sheet two - .001, .085,.014,.092. I want a formula or code for adding only new values from sheet 2 i,e -.085 & .092 while retaining the old values in sheet 1. the cells may contain Numerals,alpha numerals or alpha alone. Regards, Sriniwas Moved to Calc – Robert Tucker, Moderator
davidh182

Joined: 01 Apr 2004
Posts: 413

 Posted: Mon Jul 23, 2012 4:20 am    Post subject: Can you just stick all the values into 1 column,sort, and then identify the duplicates with a 2nd column "=A1=A2" in cell B2 [ie true if the value equals the one above] Then filter out the "TRUE"'s and delete.
karolus

Joined: 22 Jun 2011
Posts: 210

 Posted: Mon Jul 23, 2012 6:44 am    Post subject: Hallo Needs no sorting and 2.nd Column with Formula - Copy together in one Column and do: →Data→Filter→Standardfilter....with Option [x]without Duplicates Karo
CSLam
General User

Joined: 08 Aug 2012
Posts: 29
Location: Hong Kong

 Posted: Thu Aug 30, 2012 12:43 am    Post subject: Try this :- SUM(IF(Sheet1.A1:A6=Sheet2.A1:A6,0,Sheet2.A1:A6)) note: This is an array function therefore after entering the formula, hold down Shift & Control together, then press Enter. You should see {=SUM(IF(Sheet1.A1:A6=Sheet2.A1:A6,0,Sheet2.A1:A6))} The above will compare values in the range A1:A6 across Sheet1 and Sheet 2, and only add together new values identified in Sheet2. CSLam
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT - 8 Hours Page 1 of 1

 Jump to: Select a forum OpenOffice.org Forums----------------Setup and TroubleshootingOpenOffice.org WriterOpenOffice.org CalcOpenOffice.org ImpressOpenOffice.org DrawOpenOffice.org MathOpenOffice.org BaseOpenOffice.org Macros and APIOpenOffice.org Code Snippets Community Forums----------------General DiscussionSite Feedback
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum