Replacing One Cell With Another And Controlling Its Attributes
Jan 24, 2010
1) What function can I use to replace a specific cell in spreadsheet 2 with what I type in a specific cell in spreadsheet 1 (e.g. type red in spreadsheet 1 in A1 and it will replace a blank cell A1 in spreadsheet 2 with red)? I have around a hundred spreadsheets which I need to name by typing a name in cell A1. Rather than doing this, I already have the names of the spreadsheets in a column.
2) Is there anyway to control the attributes of cells in another spreadsheet? E.g. change to bold, red and specific size font in cell A1 in spreadsheet 2 using cell A1 in spreadsheet 1.
View 2 Replies
ADVERTISEMENT
Mar 2, 2007
Lets say that you have three cells. The contents of the cells are 1, 2, 3. The contents 1 and 2 have the strikethrough and 3 does not.
How can you perform a lookup from within another cell to find the cell whose content does not have the strike through? (This could also be a search based on finding the cell that does not have the red background etc...)
View 11 Replies
View Related
Feb 27, 2007
Imagine a rectangular box, with a horizontal line across it, drawn using excel cells.
This is a representation of a screen that comes in 2 sections - sometimes the upper section is largest, sometimes the lower. (Sky above, land below for example)
Is there a way to draw and control the position of the line in this box, , so that by adding a numeric value in two adjecent cells, for example 75 25 would give more "sky" (the line towards the bottom) and 25 75 would give more "land" (The line towards the top)?
View 9 Replies
View Related
Jan 18, 2010
I had 2 pivot tables running on the same page (sheet 2). They both draw data from the same source (Sheet 1).
The only difference between the two is that pivottable1 has a filter for "home team", and pivottable2 has a filter for "awayteam".
I have managed to link the tables using VB so if i select "Man United" on pivottable1 - as the home team, pivottable2 also selects "Man United".
Now my problem is, that i don;t want to select the teams from the drop down check box list on the actual pivot table. I want to be able to do this by typing into a cell (say Cell A1 on sheet 3 for instance) and this controlling BOTH pivot tables.
I did have some lengthy code which worked for one pivot table, but it did not operate both and it over rode my code i had in place which works for manual filtering.
View 9 Replies
View Related
Jun 12, 2009
I want to be able to replace the bolded and underlined areas of this javascript i have pasted in a cell with the value located in another cell. This means that those numbers would be replaced by a similar thing located in another cell. how can this be done? The way I would think you would do this by defining that say =b8 (an example of where the data could be coming from is ann excel formula, but not sure how to do this ...
View 6 Replies
View Related
Jun 4, 2014
Have a column of cells (521 rows), on the column each cell contains a group of number
Example:
27, 539, 484, 485, 506, 594, 523, 502, 505, 525, 541, 526, 527, 529, 542, 533
28, 540, 493, 494, 506, 594, 523, 502, 509, 525, 541, 526, 527, 529, 542, 530
28, 540, 493, 494, 506, 594, 523, 502, 509, 525, 541, 526, 527, 529, 542, 533
Let's say I would like replace 27 to 163 but when I find and replay the "527" also changed to 5163. How can i filtered out 527 and just change the 27. I tried Match Entire Cell Content, it doesn't work.
View 14 Replies
View Related
Jun 6, 2014
I created a custom ribbon with tickmark button. The problem is that at sometimes, i will need 2 tickmarks in the same cell.
Actually in using the simple line :
ActiveCell.Value = "a"
And when i click on a second tickmark, it replace my "a" by ei. "b"...how to make it "ab" instead ?
View 1 Replies
View Related
Sep 8, 2008
OS=XP Pro
XL=2003 SP3
I need to move data within a cell. Is there a formula that can accomplish this? Here is an example of what I'm trying to do..
Column A
/ TN14YP244f
/ TN15YP245j
/ TN16YP246h
What it would need to do is take the last character in each cell and move it to replace the P in that cell. It should also capitalize the letter. ie: / TN14YP244f would become / TN14YF244
The letters at the end of the cell are always different, however the letter they replace is always the same (P).
View 9 Replies
View Related
Apr 17, 2009
I have a long spreadsheet that is formatted and organized with six digit codes on the left, and then several lines of information on the right, in order to sort and compare to another report, I was trying to replace the blanks in the digits on the left....
View 7 Replies
View Related
Jun 8, 2009
I have a spreadsheet with around 1000 rows on data. in each row of data there is a number e.g. 2673 (all in their own cells) so in column A you would have a list of just numbers in another workbook, the number thats in each row corresponds to another value e.g. 2673 = CE103. So this workbook has 2 columns. In column "A" you have the numbers(2673) and in column "B" you have what that number matches with (CE103) i need a way of replacing all the numbers with what they equal
Workbook 1
A B C
2673 XXX XXX
513 XXX XXX
5107 XXX XXX
604 XXX XXX
Workbook 2
A B
2673 CE107
513 CDR57
5107 QV906
604 MNT57
There is an example of what i have (hope its understandable) and what i need is, the data from workbook 2 put in to workbook 1. So instead of having 2673 in workbook1, i would have CE107. And the same for the others e.g 513 would be CDR57.
View 4 Replies
View Related
Aug 6, 2014
I have a row of different dates in a speadsheet all in the same column e.g A1 to A10 What I am trying to achieve is that when it reaches todays date it will automatically change that cell to read Expired.
View 1 Replies
View Related
Nov 8, 2012
I have a data starting from column D. And the list goes like below:
D1: TO
E1: CC
F1: BCC
G1: Body
H1: Text1
I1: Text2
J1: Text3
I would like to obtain the final body in column K after replacing the text with column H, I, J.
Below is how my data looks and How i would like to obtain the final body.
To
CC
BCC
Body
Text1
Text2
Text3
Final Body
View 1 Replies
View Related
Jul 14, 2009
I have code that was working with cell references. I replaced one of the cell references with a Defined Name that I applied to the cell that was previously referenced in the code. The code does not work with the Defined Name now. In the code below, the Name "FeeType" was previously where the cell reference was. I have attempted to fix the reference by changing the use of " 's ....
View 9 Replies
View Related
Dec 30, 2009
Right click menus are a well known topic but I am struggling to find information on what I want to do with them. I have seen it done so I know its possible. What I want to do is completely replace the right click menu with my own custom one on a worksheet.
I do NOT want to add things to the existing right click menu I want to effectivly disable the existing one and put on my very own one in its place. I have looked at the code for adding a menu to a textbox etc which seems sound but I can't trigger it with an event. I don't have any code to show Im afraid as I am just playing with other people at the moment trying to get it to work.
View 9 Replies
View Related
Apr 15, 2005
I have two worksheets, one contains lots of data and the other references this data to form a summary.
The problem is that having set up all this I have found that not all the references on the summary sheet will always reference a cell with data in it and so bring back a value of 0.
Since this summary sheet will be used to enter data into a database I would prefer a blank cell over a 0.
I know I can use an IF ISBLANK to do this, but dont fancy going through each cell and re-writing the formula, so- Does anyone know an easy way of changing all the cell references to include the IFISBLANK statement?
View 6 Replies
View Related
Jul 2, 2006
I need some direction on how to proceed with dismantling an address cell. I have a workbook that one field is an address label field. What I mean is the entire address is entered in one field just as it would appear on an envelope. I need some suggestions on how to break this apart and create individual fields for the individual parts.
View 6 Replies
View Related
Jun 1, 2014
I'm running Excel 2010.
In a field containing this: Bergamot, Orange*(11,16) I want to put a space before the asterisk. There are hundreds of these in the spreadsheet with other text before and after the text to be replaced. I made sure the field is defined as a text field.
I searched on "*(" and said replaced with " *(" and ended up with " *(11,16)" - the Bergamot, Orange was removed from the field.
View 6 Replies
View Related
Feb 24, 2014
My current problem is that I need to search two tabs of data and use the results to modify the contents of one cell in the first tab.
I'll try to be as clear as possible:
tab1 has relevant cells "a" and "b", same row
tab2 has 3 relevant cells "c", "d", and "e", all on the same row
All cells are text values - some digits, but should be treated as a regular String.
The search needs to look at cells "a" and "b", find their match in "c" and "d", then replace the original value of "b" with the value in "e" after a match has been found.
View 1 Replies
View Related
Oct 30, 2008
I am using VBA to change the attributes of Command Buttons on a number of pages and due to the numbers involved wanted to automate the process.
Unfortunately whilst I can select the buttons, changing the attributes I cannot get to work, e.g. For Command buttons CB1 and CB2
View 4 Replies
View Related
Mar 29, 2013
I am trying to have the exact same type of text (font, color, boldness, italicizing, underlining, etc) in my target as I have in my source on a character by character basis. The procedure below works for color only. Is there a way I can modify this procedure to include all cell attributes for each character in my target? I looked at the Font properties and couldn't find what I needed. Maybe I need to do it in a totally different way?
For Each cell In source
With cell
target.Characters(i, Len(.Value2)).Font.Color = .Font.Color
i = i + Len(.Value2) + Len(delim)
End With
View 9 Replies
View Related
Jun 20, 2006
I have a list of user attributes which I would like to merge into a template. I have attached a copy of the template and a copy of the user attributes sheet. The attributes have been downloaded directly from a database so there is one attribute per line. For eg 1 user may have 5 cost centres assigned to him. I would like the 5 costs centres to show up under the template. The problem I have is the template is set up for one line per user with multiple fields for cost centres, therefore I need some way of taking the following output.
User Attribute Value
111 CC CA1023
111 CC CA1204
111 CC CA3333
And merging into the following template
User CC1 CC2 CC3
111 CA1023 CA1204 CA3333
Each user has multiple attributes (Cost centre, internal order, etc) I am only worried about the cost centre field for the time being. Also each user may have 0-10 cost centres assigned
View 3 Replies
View Related
Sep 4, 2009
First, to i change the attributes, select the appropriate cell or range and then choose Format, Cells. In the Format Cells dialog box, click the Protection tab and select Locked or Hidden (or both). Unlock cells that accept user input, and lock formula and other cells that should stay unchanged (such as titles). To prevent others from seeing your formulas, lock and hide the formula cells: The results of the formulas will be visible, but the formulas will not.
Now, to protect the worksheet, choose Tools, Protection, Protect Sheet to bring up the Protect Sheet dialog box. but its hideing the formulas. once i protect the cells it wont let me to edit the worsheet (eg- cell height, cell width)
View 4 Replies
View Related
May 10, 2012
I'd like to sum up values based on certain cell attributes. Firstly, I don't know if it's possible to define cell attributes and how to do it. Let me put some example:
I have one column where I've put some values and I'd like to sum up the values only for certain cells in this column. In an "OOP approach" I'd use some grouping method based on attributes, so each cell would have an attribute called ID, for example, and I could select only the cell with some desired ID.
View 1 Replies
View Related
Feb 5, 2007
Are the 2 examples the correct methods to prevent right-click on Rows and Columns?
'Prevent Right Click on entire selected Row(s)
Application. CommandBars("Row").Enabled = False
'Prevent Right Click on entire selected Column(s)
Application.CommandBars("Column").Enabled = False
View 7 Replies
View Related
Jan 23, 2008
I have a list of items in a tab of a workbook that has attributes across the top, with an X in the intersection if the item has that attribute. For example:
Items:
Apple
Table
Paperclip
Attributes:
Red
Wood
Small
The Apple might have an "X" in the intersection of Red and Small, and the Table might only have an "X" in the intsersection with Wood.
I have another tab with five drop downs that can either be blank, or one of the attributes. I want to create a formula that will return the number of items in the list that have an "X" for all the attributes selected in the drop down. Therefore if I selected only "Small" and left the other four blank, the formula might return 2, and if I then select the next drop down and select "Red" the formula would now return 1.
Any thoughts of how I could accomplish this? I am thinking of using a SUMPRODUCT and some sort of Index Match to find the value in the cells selected by the drop down. It seems like Index only returns a row though, and not a column.
View 9 Replies
View Related
Oct 29, 2008
I'm helping out a community that puts out a role playing game by making a character sheet for their gaming system. It's normally a pen-and-paper type affair, but a few people have reached out to me and asked me to make it. Now, one thing that I really thought would be nifty would be to make it persistent. I know of the Excel basics, creating basic formulas and the such, but this is where I hit a brick wall.
For the character sheet, they normally have basic attributes on a 1-20 scale. These attributes are accomanied by a bonus. The only thing is those, while these bonuses go across a linear path (For attribute 1, it's -30, for 2 its -20, for 3 its -10, for 4 its -5 for 5 its 0....), I cant seem to figure out how to create some kind of If/Then formula for it....
Heres my example:
Brad makes a character that has a score of 9 for one of his attributes. The bonus given to someone with a 9 is a +10. What I'm looking to do is create a table that sees that 'If (c9)=9, Then (d9)=+10'...
And my second related issue...
Is there any possible way to do the above mentioned formula in relation to a drop down selection bar? It's the same thing here; To break it down simply, It would be excellent if there was a way for it to say If (a10)=Warrior, then (c10)= +10.
View 3 Replies
View Related
Jan 26, 2010
I want to do in VBA is to be able to read and place in a variable the image Width and Height of an image in a folder. I can (with help from here) read the filenames in folder. But is there a way in Excel to read the above attibutes?
View 12 Replies
View Related
Feb 19, 2010
How to access the full set of attributes of a control when grouped?
I am trying to access the properties of a grouped set of checkboxes (for grouped I mean selected and right click - > Group)
It appears that grouped controls are not accessible through OLEObjects() but they can be accessed as shapes. For example, the following code will set all elements in the group Advertisement2 to .Visibility = False:
For Each T In ActiveSheet.Shapes("Advertisement2").GroupItems
T.Visible = True
Next
However, most other properties, such as .Enabled or .Value are not accessible (probably because the controls are considered shapes).
I have tried all sort of solutions, including using
.groupItems("ControlName").Value
or
.groupItems("ControlName").Object.Value
View 9 Replies
View Related
Oct 2, 2013
I am trying to take items with multiple market attributes and columnized them so that they can be sorted or filtered.
For example,
Item 110 is suitable for Preteen, Teen, Young Adult, Adult and Senior
Item 121 is suitable for Teen and Young Adult
Item 250 is suitable for Senior
Item 300 is suitable for Young Adult, Adult and Senior
I want to be able to arrange the attributes vertically so that the attributes can be filtered. I'm thinking the easiest way to do it is to duplicate each row as many time as there are attributes and copy each attributes to a single Market column.
View 9 Replies
View Related
Oct 27, 2013
My company would receive RFQs from potential customers inquiring the availability of different products, and we are trying to summarise these requests to find a trend.
Each product has several attributes, such as descriptions, keywords, manufacturer's code, etc. The RFQs are all different, with each request providing some attributes while missing others. The only reliably uniform attribute is the product number.
I am trying to build a database with the maximum amount of details on each requested product, therefore consolidating the different requests. I already put the source data on the same sheet and sorted the product numbers. I also know how many instances there are for each product number. In other words, my data look like this:
Product number (sorted)
Repeat count
Attribute 1
Attribute 2
111a
2
aaaa
[Code] .........
Note:
1. The product numbers and repeat count are reliable
2. All the attributes are valid, i.e. as long as one can fill a blank I would take it
3. If none of the instances provide a certain attribute, it is acceptable for it to be left blank
And I am trying to turn it into this:
Product number
(sorted)
Repeat count
Attribute 1
Attribute 2
111a
2
aaaa
bbbb
123456
1
abcde
100x
3
123456
wxyz
I already spent a whole day trying to do it with MATCH, OFFSET, VLOOKUP etc to no avail. It seems I would need some kind of VBS with loop and array functionalities that are beyond me.
View 3 Replies
View Related