[libreoffice-users] Re: How to check rows for to replace a value for another in Calc?

2014-08-08 Thread Daniel R. Miguel

Hello again!

I wanted to update you guys. I created a new table manually with the fields:
EXTEMAILFULL NAME

I proceeded to fill them making sure no value was repeated. So now I 
have a table that is capable of converting EXT to EMAIL or FULL NAME; or 
EMAIL to FULL NAME with vlookup().


I also need to look up to the left side so, for example, if I want to 
extract the email from a full name I can vlookup() the name and check 
the adjacent cells. The problem is vlookup() only looks to the right 
side of the first column so I've used vlookup(choose()) to be able to 
look up the values to the left side. This feels like bad formula all 
around and would like your opinion in which is a good way to do what I 
want to do.


The exact formula is this:

|= VLOOKUP( VLOOKUP( D5,CHOOSE( {2,1}, ext_mail.$B$1:$B$100, 
ext_mail.$E$1:$E$100), 2, 0), $A$3:$B$51, 2, 0)|


So it is a choose() nested in a vlookup() which is nested in another 
vlookup(). Bad code all around.


Thanks for your time!

El 07/08/2014 a las #4, Daniel R. Miguel escribió:

Hi again!

I have a problem in Calc. I get a lot of spreadsheets from various 
sources and I have to compile one big sheet with the information of 
every one of them. One of the problems I am facing is that there is a 
lot of names for the same user. So, for example:


PHONE EXTENSIONName Sheet A
111John Doe

PHONE EXTENSIONName Sheet B
111Jon Doe

PHONE EXTENSIONName Sheet C
111J. Doe

Right now, I have kind of a table relating one to another but it is 
absolutely atrocious:


EXT.Name AName B
111John Doe   J. Doe
111John DoeJon Doe

I would like a system where I could have only one row for person:

EXT.Name AName BName CName D
111John DoeJ. DoeJon Doe...
112Dorian GrayD. GrayDon Gray...


And once the table is properly established, I would want to replace 
every appearance of Name B, Name C with the value of Name A.
If any of you would want to help me pointing how this could be done, I 
would be immensely grateful.


Thank you!



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] How to check rows for to replace a value for another in Calc?

2014-08-07 Thread Daniel R. Miguel

Hi again!

I have a problem in Calc. I get a lot of spreadsheets from various 
sources and I have to compile one big sheet with the information of 
every one of them. One of the problems I am facing is that there is a 
lot of names for the same user. So, for example:


PHONE EXTENSIONName Sheet A
111John Doe

PHONE EXTENSIONName Sheet B
111Jon Doe

PHONE EXTENSIONName Sheet C
111J. Doe

Right now, I have kind of a table relating one to another but it is 
absolutely atrocious:


EXT.Name AName B
111John Doe   J. Doe
111John DoeJon Doe

I would like a system where I could have only one row for person:

EXT.Name AName BName CName D
111John DoeJ. DoeJon Doe...
112Dorian GrayD. GrayDon Gray...


And once the table is properly established, I would want to replace 
every appearance of Name B, Name C with the value of Name A.
If any of you would want to help me pointing how this could be done, I 
would be immensely grateful.


Thank you!

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


Re: [libreoffice-users] Sum of multiple cells substring

2014-08-05 Thread Daniel R. Miguel

Hi again,
I modified the formula to suit my spreadsheet to 
{=SUM(IF(LEFT(B46:AE46,2)=OT,VALUE(MID(B46:AE46,3,99)),0))}. It works 
beautifully but, in some instances it will render an Err:502.

One of said instances is this:
OT8 	HF8 	OT8 	OT2 	OT1 	OT0,5 	OT8 	OT8 	OT8 	OT5 	OT6 	OT5 	OT6 
OT5 	OT5 	OT8 	OT5 	OT6 	OT3 	OT8 	OT8 	OT4 	OT8 	OT8 	OT5 	OT1 	OT5 
OT4 	OT8 	OT8



Is the HF8 the one to blame?

Thanks again.

El 05/08/2014 a las #4, Brian Barker escribió:

At 17:38 04/08/2014 +0200, Daniel R. Miguel wrote:
I have a table with cells that may contain OTnum, so it might contain 
OT0.5, OT1, OT2, OT2.5 et cetera. I would want to sum the number 
substring of all the cells in a row, so for example if I have this row:

AlanOT0,5FOT1FVOT2FF   VOT3
I would have another column with the total sum of OT:
AlanOT0,5FOT1FVOT2FF   VOT3 6,5
(OT3+OT2+OT1+OT0.5)


Suppose those eleven items are cells A1 to K1. In the result cell, enter
=SUM(IF(LEFT(B1:K1,2)=OT,VALUE(MID(B1:K1,3,99)),0))
But don't press Enter or click the green tick mark; instead press 
Ctrl+Shift+Enter to render it an array formula. You will see that the 
entire formula displayed in the Input Line has been surrounded by 
braces - { } - but note that you cannot achieve the same result by 
typing these yourself.


You will presumably need to copy this formula down a column. If so, 
you appear to be able to achieve the correct result by copying the 
formula from the first cell and pasting it into others (even 
wholesale) or by using Edit | Fill, but not by dragging the fill handle.


I trust this helps.

Brian Barker





--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Sum of multiple cells substring

2014-08-05 Thread Daniel R. Miguel

Hello again!

I realized the error was that the decimal point is a , (we are using 
Spanish localization), so changing the , for a . decimal point did the 
trick.


Once again, thank you a lot.
El 05/08/2014 a las #4, Daniel R. Miguel escribió:

Hi again,
I modified the formula to suit my spreadsheet to 
{=SUM(IF(LEFT(B46:AE46,2)=OT,VALUE(MID(B46:AE46,3,99)),0))}. It 
works beautifully but, in some instances it will render an Err:502.

One of said instances is this:
OT8 	HF8 	OT8 	OT2 	OT1 	OT0,5 	OT8 	OT8 	OT8 	OT5 	OT6 	OT5 	OT6 
OT5 	OT5 	OT8 	OT5 	OT6 	OT3 	OT8 	OT8 	OT4 	OT8 	OT8 	OT5 	OT1 
OT5 	OT4 	OT8 	OT8



Is the HF8 the one to blame?

Thanks again.

El 05/08/2014 a las #4, Brian Barker escribió:

At 17:38 04/08/2014 +0200, Daniel R. Miguel wrote:
I have a table with cells that may contain OTnum, so it might 
contain OT0.5, OT1, OT2, OT2.5 et cetera. I would want to sum the 
number substring of all the cells in a row, so for example if I have 
this row:

AlanOT0,5FOT1FVOT2FF   V OT3
I would have another column with the total sum of OT:
AlanOT0,5FOT1FVOT2FF   V OT3 6,5
(OT3+OT2+OT1+OT0.5)


Suppose those eleven items are cells A1 to K1. In the result cell, enter
=SUM(IF(LEFT(B1:K1,2)=OT,VALUE(MID(B1:K1,3,99)),0))
But don't press Enter or click the green tick mark; instead press 
Ctrl+Shift+Enter to render it an array formula. You will see that the 
entire formula displayed in the Input Line has been surrounded by 
braces - { } - but note that you cannot achieve the same result by 
typing these yourself.


You will presumably need to copy this formula down a column. If so, 
you appear to be able to achieve the correct result by copying the 
formula from the first cell and pasting it into others (even 
wholesale) or by using Edit | Fill, but not by dragging the fill handle.


I trust this helps.

Brian Barker







--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



[libreoffice-users] Sum of multiple cells substring

2014-08-04 Thread Daniel R. Miguel
Hi, I have a table with cells that may contain OTnum, so it might 
contain OT0.5, OT1, OT2, OT2.5 et cetera.


I would want to sum the number substring of all the cells in a row, so 
for example if I have this row:


AlanOT0,5FOT1FVOT2FFVOT3

I would have another column with the total sum of OT:

AlanOT0,5FOT1FVOT2FFVOT3 6,5 
(OT3+OT2+OT1+OT0.5)


I have tried with the formula 
=SUMPRODUCT(MID($B5:$AF5,FIND(OT,$B5:$AF5,3))), but I am not actually 
sure what I am doing.


Thanks.

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted