Need formula to take text from one cell, add that to a serial number with leading zeros
I'm trying to create a spreasdheet cell that simplifies creating videotape Numbers from a job name in cell and appends a serial number with leading zeros, and that would survive an export to EXCEL.
The result would look like
A Column
Job Name
B ColumnTape #
Formula needed for B
ClientName-TapeType-
ClientName-TapeType-001
=
ClientName-TapeType-
ClientName-TapeType-002
=
I've tried using a custom cell format that had the text in front of the (Integer) drag and drop, with three integers and leading zeros.
That worked, but requires recreating the custom cell format for each client and tape type.
So, I've used the formula =A2& in order to play around with different things, but haven't hit on something that adjusts for increased numbers and retains the leading zeros.
I don't mind doing a starter for the first row and then adding +1 in the formulas for the rows below.
I've done that using the custom cell formats for the first B cell and then using =Bx+1 in the following cells. It works, but I'm hoping to find something simpler or that can be copied and pasted in multiple rows on one paste.
Thanks in advance.
Suggestions much appreciated!
Ted
Ted,
This expression in B will give you the pattern I believe you are looking for:
=A&RIGHT("00"&ROW()-1, 3)
Here's a screen shot...
Jerry
Similar Messages
-
Take text from a cell and add it to a new cell
Here's what I'm trying to do. I have a report that's automatically created in 2 columns. Item and Price. I have no way of changing how this report is made, which is why i need Numbers to help me out. In the item column, part of the text includes a number.
Example:
Item
Price
Large Espresso (1.4)
$1.49
Small Espresso (0.9)
$0.99
What I would like to do (if possible) is have NUMBERS put the number from "column a" into "column c" i'm assuming it's some type of [if this cell has a number, take that number and insert it here] function
Example:
Item
Price
Amount
Large Espresso (1.4)
$1.49
1.4
Small Espresso (0.9)
$.99
.9
And then (i know i'm asking a lot but that's why i'm here to get help):
if i had multiple items all with different amounts is there a way to categorize/sort those so i could see how much of each one i have sold? I'm assuming it's some type of [if "column a" contains (large espresso) add it's sisters "column c" together.
Example:
Item Name
Price
Amount
Large Espresso (7.17)
$90.00
7.17
Small Espresso (1.12)
$15.00
1.12
Small Coffee (3.66)
$45.00
3.66
Small Espresso (1.10)
$15.00
1.10
Small Espresso (1.19)
$15.00
1.10
Large Coffee (2.10)
$3.50
2.10
Large Espresso (3.60)
$45.00
3.60
Large Coffee (3.60)
$45.00
3.60
Large Coffee (3.60)
$45.00
3.60
Can it sort to...
Item Name
Price
Amount
Large Espresso
(all items from above table named large espresso, regardless of what number comes after it)
$135
(total of all items named Large Espresso)
10.77
(total of numbers next to Large Espresso in "Column A")
Small Espresso
(all items named small espresso, regardless of what number comes after it)
$45
(total of all small espresso purchases)
3.32
(total of numbers next to Small Espresso in "Column A")
Large Coffee
(all items named large coffe)
$93.50
(total of all large coffee purchases)
9.3
(total of numbers next to Large Coffee in "Column A")
Small Coffee
(all items named small coffee)
$45
(total of all small coffee purchases)
3.66
(total of numbers next to Small Coffee in "Column A")
I'm sorry for such the lengthy explanation, but i tried to be as detailed as possible. If there's any questions, feel free to ask, thank you all so much for your help, i don't know where else to turn...Thank you SOOOOOO much for your help wayne, everything worked perfectly except for one thing. It isn't returning anything to me on the summary table. **UPDATE** Our tables were named differently, I was able to figure out how to change what columns you were referencing and add the "amount" column to my summary table by copying and pasting the previous formula and again changing what columns it referenced. I can't thank you enough for your help!
I do have one more question i hope you could help me with...I realize that the names in the summary table column "a" must exactly match the column "d" in the inventory list table, but if i had 2 items named the same thing could it include all text that included the item name...
Example Summary Table:
Item
Price
Amount
Large Coffee
$15.00
5.64
Small Coffee
$45.00
21.45
Large Espresso
$20.00
5.67
Small Espresso
$15.00
9.4
Changing this instead to Include all items containing the word "coffee" or "espresso" respectively. It's ok if i have to manually write the names of the items in column "a" of the summary table, and just change the formula in the price and amount column to search for a certain word...
To make sure I'm clear, referencing the original sales sheet, and then assuming the above summary table was a result of that sales sheet, I would like only one row of coffe and one row of espresso. So the formula would need to search for a word rather than referncing that "d" column from the earlier formulas you gave me.
Item
Price
Amount
Coffee
$60.00
(All Coffees sold, large or small)
27.09
(All Coffees Sold, large or small)
Espresso
$35.00
(All espressos sold, large or small)
15.07
(All espressos sold, large or small)
Thanks for all your help, i hope i was clear enough again -
I have two macs in my house. One is newer and came with the os x mountain lion software and the other one needs to be upgraded. I was wondering if there is a way to take upgrade from one to the other? Should not have to buy this software again.
Welcome to Apple Support Communities
Buy it for the other computer. Mountain Lion is preinstalled on the new Mac, but you can only use it in the new one -
I have never used PhotoShop and do not have time at the present. Please help me to move a section of text from one column to another in a brochure.
Here are 3 options for future reference:
1. With the setup you've described, apply a Match Move behavior to the text and make the rectangle the source. Change the Transform parameter to Mimic source. This way you can still adjust the text postion as needed, but the rectangle will drive the animation.
2. Use a group to do the animation. Put both your rectangle and text in the same group and animate the group's postion.
3. Use the Link behavior.
Each of these has it's advantages depending on what you need. -
If Number = than then display text from another cell
Hi
I'd appreciate it if anyone can help me with this please.
I am putting together a gradebook type spreadsheet. I would like to display the text from another cell if the number entered in another cell is greater than or less than a certain number.
So - if the number in cell A is equal to or greater than 70 then the text displayed in cell B equals the text contained in cell C
Hope this makes sense.
Many thanks in advance.
regards,Hello Lee,
The Numbers User Guide PDF available from the Numbers Help menu as a download is good reading for beginners. As a reference document, the iWork Formulas and Functions User Guide is also valuable.
The function you need is called "IF", and the syntax is: IF "logic-expression" is true, then do this, else do this. As a calculation in a cell, that would have the form: =IF("Cell A" is equal to or greater than 70, then display the content of cell C, else display "something else") You need to provide the "something else", which can be a null string, "", if you wish.
As you will find when you read the guide, the cells all have row and column address components where the column is identified by a letter of the alphabet and the row by a number. So If your data is in A1, your text string in B1 and your expression is in C1, you would write in C1:
=IF(A1>=70, B1, "")
Does this help?
Jerry -
Copy Text from one quote to another
Hi
I need to copy text/notes related to one quotation to another.. I tried FM SAVE_TEXT and CRM_TEXT_MAINTAIN_OW but neither of it worked...
Can anyone help me with this ?Hi Ashwineee,
U can copy text from one quote to another by customizing also
Just Check the settings of your text type in the text determination procedure.
Select ur text type and click on details u will find the text id description sequence and
Transfer field u have various options u select the option "B" for ur text type .
U can take reference of the Standard Text determination Procedure "ORDER001" for doing the same
for your text determination Procedure
Menu Path--
Crm-Basic Functions- Text Management-Define Text Determination Procedure - select the Object --
example for CRM_ORDERH and click on Procedure and select ur text determination procedure --
Select Definition of Procedure that gives u details of your text type and its options
Hope it will Resolve ur problem
Regards
Pavan.A -
Drag the component from one cell to another cell within JTable
Hi All,
I have one requirement to drag the component from JList to JTable cell. I am able to do it but once if i drag the component from list to table cell, table accepting the drop after this i am unable to move the same component from one cell to another cell within the table.
Any advice.
I have used the following logic for JTable and JList is drag enabled.
DefaultTableModel tableModel=new DefaultTableModel(
new Object [][] {
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null}
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
JTable table = new javax.swing.JTable(){
public boolean isCellEditable(int row, int column)
return false;
table.setModel(tableModel);
table.setDragEnabled(true);
table.setDropMode(DropMode.INSERT);
table.setTransferHandler(new TransferHandler(){
public boolean canImport(TransferHandler.TransferSupport info){
if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
return false;
return true;
public boolean importData(TransferSupport support) {
if (!support.isDrop()) {
return false;
if (!canImport(support)) {
return false;
JTable table=(JTable)support.getComponent();
DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
// fetch the drop location
JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
int row = dl.getRow();
int col=dl.getColumn();
// fetch the data and bail if this fails
String data;
try {
data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
} catch (UnsupportedFlavorException e) {
return false;
} catch (IOException e) {
return false;
calendarTableModel.setValueAt(data, row, col);
return true;
});Thanks & Regards,
Maadhav.
Edited by: maadhav on Jun 23, 2009 12:29 AMHi All,
I fixed this issue with some additional logic which allow me to drag and drop the string component from one cell to another cell within in the JTable.
I am attaching the new logic here, if any one needs use it.
DefaultTableModel tableModel=new DefaultTableModel(
new Object [][] {
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null},
{null, null, null, null,null,null,null}
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4","Title 5","Title 6","Title 7"
JTable table = new javax.swing.JTable(){
public boolean isCellEditable(int row, int column)
return false;
table.setModel(tableModel);
table.setDragEnabled(true);
table.setDropMode(DropMode.USE_SELECTION);
table.setTransferHandler(new TransferHandler(){
public int getSourceActions(JComponent c) {
return DnDConstants.ACTION_COPY_OR_MOVE;
public Transferable createTransferable(JComponent comp)
JTable table=(JTable)comp;
int row=table.getSelectedRow();
int col=table.getSelectedColumn();
String value = (String)table.getModel().getValueAt(row,col);
StringSelection transferable = new StringSelection(value);
table.getModel().setValueAt(null,row,col);
return transferable;
public boolean canImport(TransferHandler.TransferSupport info){
if (!info.isDataFlavorSupported(DataFlavor.stringFlavor)){
return false;
return true;
public boolean importData(TransferSupport support) {
if (!support.isDrop()) {
return false;
if (!canImport(support)) {
return false;
JTable table=(JTable)support.getComponent();
DefaultTableModel tableModel=(DefaultTableModel)table.getModel();
JTable.DropLocation dl = (JTable.DropLocation)support.getDropLocation();
int row = dl.getRow();
int col=dl.getColumn();
String data;
try {
data = (String)support.getTransferable().getTransferData(DataFlavor.stringFlavor);
} catch (UnsupportedFlavorException e) {
return false;
} catch (IOException e) {
return false;
tableModel.setValueAt(data, row, col);
return true;
});Thanks & Regards,
Maadhav..
Edited by: maadhav on Jun 23, 2009 5:26 AM
Edited by: maadhav on Jun 23, 2009 5:28 AM -
How to best take sections from one document to merge with another Indesign document
I am looking for most efficient way to take a section from one document to merge with a section from another document? We have a book that needs updating, taking a section from one document to merge into another. We have typically copied and paste each page, but there are 20+ pages involved. Does anyone have a better way?
Open both documents.
With source document active, In pages panel, select pages that are to be copied to the destination document
Right Click (or use panel menu) and select Move Pages ...
Double check that correct page range is noted
Select destination document
select where in document pages should appear (beginning, end, after or before page X) -
Move text from one artboard to another
Hi I have 3 artboards open and am trying to move text from one artboard to another, each piece of text is on a different layer, but when I use the selection tool and just drag it across to the next artboard, nothing shows up. How do I move text from one artboard to another? Thanks
Dont worry I now have it sussed. I just needed to move the layers up in the stacking order.
-
How to copy and paste text from one photo book page to another.
hello,i downloaded this software 2days ago,and i've been having so much fun with it. pls i need help on how to copy and paste text from one photo book page to another. Secondly how to copy my completed photo book pages project to another laptop for printing. thanks
This question was solved.
View Solution.Hi DG.
The easiest way to copy an HP Photo Creations project to another computer is to click the Share button. That will upload the project to the Web and give you a link you can paste into an email. Clicking the link on the other computer allows you to download the project and personalize it. This quick video shows the process. (The screen looks slightly different now, but the concept is the same.)
Another way to share a project is copy the project folder to a thumb drive. Look in Documents/HP Photo Creations/My Things to find your saved projects.
Our customer support team would be happy to walk you through the process. Contact them at [email protected]
Hope this helps,
RocketLife
RocketLife, developer of HP Photo Creations
» Visit the HP Photo Creations Facebook page — news, tips, and inspiration
» See the HP Photo Creations video tours — cool tips in under 2 minutes
» Contact Customer Support — get answers from the experts -
Can I Copy and Paste text from one Contact to Another on iPhone 3G?
Can I Copy and Paste text from one Contact to Another on iPhone 3G?
Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
I had a challenge importing from my outlook as it created dual entries for people I had with multiple email addresses or telephone numbers so I need to copy and paste contact info from one to antoher.
Can anyone help?MCWEB wrote:
Can I Copy and Paste text from one Contact to Another on iPhone 3G?
You will be able to do copy & paste when 3.0 comes out this summer.
Or even better while the iPhone is connected to my PC can I view the address book on the iPhone and make changes using my PC keyboard?
No. You would make changes to the address book on your PC and then sync via iTunes. -
Inserting text from one JTextpane to another
How do i insert text from one jTextpane to another with the attributes i used in the first. Please help.
i'm using a defaultstyleddocument. Also.....if u know
how i can transfer this data through a
DataOutputStream to another computer.Hi again,
DefaultstyledDocument uses a tree-structure with classes in it, that implements the Element-Interface to hold the styles. It is very easy to get the plain text, but what you need to transfer a part of text from one JTextPane with DefaultStyledDocument in it to another with the same document-style in it, is a sequence of (string, AttributSet) - pairs, so you are able to insert them in the destination document by the insertString(...)-method.
It is easy to get the Element by postion from the document and retrieve the Attributset from it that it uses in that position. I guess, an approach would be, to do the following:
get the Attributset at the start of the text = AttributSet of the pair
scan the document until the set changes
extract the string from start to the position right before the set changes = string of the pair
store the (String,AttributSet)-pair in a Vector
do this in the same way, but this time the "start" will be the position of the start of the new Attributset that causes the end of the scan above.
When this is done for the hole text, that is to be transferred, you have a Vector with the String-AttributSet-pairs that you can use to insert them in the other JTextPane by calling the
insertString(...)-method with this values.
Tell me, what you are thinking about that - I don't know another method for this and had to create a solution on the fly for you, so that is perhaps not the best way to do it.
greetings Marsian -
Non-.CSV format: expand data from one cell to many
I would like to expand this data from one cell to many where each space is the delineator as well as the /slash.
Example data:
Mr. Bernardo Mestido/Portugal
Ms. Renata Sateel/Germany
-Thank you for any help!Here is a simple script which does the trick :
--{code}
--[SCRIPT exploder ]
Yvan KOENIG (VALLAURIS, France)
2011/09/19
on run
Here the clipboard contains the datas to 'explode' *)
my remplace(the clipboard as text, space, tab)
set the clipboard to my remplace(result, "/", tab)
Now you may paste in a table *)
end run
--=====
replaces every occurences of d1 by d2 in the text t
on remplace(t, d1, d2)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d1
set l to text items of t
set AppleScript's text item delimiters to d2
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end remplace
--=====
--[/SCRIPT]
--{code}
Yvan KOENIG (VALLAURIS, France) lundi 19 septembre 2011 23:06:15
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community -
I have a friend who has 2 phone numbers, he sends texts from one and i have to reply to the other one.
Is there any way i can configure the SMS conversation so: it receives texts from his 1st number and when i reply it goes to the 2nd number?
Thank youI don't think it is possible to do what your friend is asking.
He would need to call his phone carrier. -
I have an extensive aperture library on my computer's hard drive and I want to break it up into separate smaller libraries on external hard drives. How do I take projects from one library and add them to another one?
Coastal,
Frank gave you the exact answer to your question.
However, I would like to ask if you are indeed asking the right question. Do you really want different libraries? The implications are that you have to "switch" libraries to see what's in the others, and so that your searches don't work across all of your pictures? If so, then you asked the right question. If not, you may be more interested in relocating your masters to multiple hard drives so your library gets smaller, instead of breaking up the library.
nathan
Maybe you are looking for
-
ATI Radeon 9000 Pro Mac AGP (driver needed for OS 9.2?)
Hi guys! How's everybody doin? I just picked up a used ATI 9000 AGP 128 MB (as an upgrade for my G4 Quicksilver 800 MHZ). I'm using 2 HD's (one with OS9), the other (with OSX) I think OS 9.2 will do ok without the need for a driver, but I just wanna
-
My iPod touch does not show up in My computer or in itunes. Windows 8
I recently bought a Windows 8 computer, when i tried connecting my Ipod touch the sound went off on the ipod saying it was connected but no message saying to sync. On the computer nothing was shown saying anything had connected. I have tried re-insta
-
HP Photosmart 5520 Windows XP Windows shuts down IE & can't print from e-mail
installed new 5520 last weekend. windows keeps shutting down IE. went through windows suggestions. says it is due to smartprint. I do not need smartprint or e-print, just want to print from my laptop. Can I uninstall smartprint and e-print and j
-
When pressing the help button, the browser still starts with an URL pointing to 4.7, but we are on ERP 2005. Where can i configure/change this so that the ERP 2005 help files are shown?
-
My Itunes wouldn't acknowledge my new Ipod, so i uninstalled it (older version) and now I'm trying to install the newest version. I'm getting this error. "An error ocurred during installation of assembly. "Microsoft. VC80.CRT type="win32. Version="8