OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Request for a formula to use in spreadsheet

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
sriniwas67
General User
General User


Joined: 05 Mar 2012
Posts: 9

PostPosted: Mon Jul 16, 2012 9:35 pm    Post subject: Request for a formula to use in spreadsheet Reply with quote

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
Back to top
View user's profile Send private message
davidh182
OOo Advocate
OOo Advocate


Joined: 01 Apr 2004
Posts: 413

PostPosted: Mon Jul 23, 2012 4:20 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
karolus
OOo Advocate
OOo Advocate


Joined: 22 Jun 2011
Posts: 208

PostPosted: Mon Jul 23, 2012 6:44 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
CSLam
General User
General User


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

PostPosted: Thu Aug 30, 2012 12:43 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group