I was hoping you guys could help me figure something out. I am trying to get excel to highlight every other row that contains any information in column A
so it would look like this:
I haven't been able to make any proper headway into this but I was hoping you guys might be able to give me some basic direction.
You can do this without VBA, just use conditional formatting.
Mark the Range, go to Conditional formatting, add a new rule with rule type "Use a formula to determine which cells to format" and enter
=AND($A1<>"",MOD(ROW(),2)=1)
(depending on the regional setting, you might have to exchange the "," with ";" - same syntax as a regular formula)
Then, click the "Format" button and select a fill color.
Convert a range into a table in Excel:
You can make your range of data into a table (including auto-formatting):
Select (highlight) the cells (including the heading if there is one).
Hit Ctrl+T.
Hit Enter.
There are several ways you can then customize your table, such as the options on the ribbon.
More Information:
Office.com : Create or delete an Excel table
Office.com : Overview of Excel tables
Several other tutorials and examples on Google Search.
Related
you most probably going to think "what an idiot" but remember i never done any type of coding before so this is all new to me,
My problem are that i'm working on a HUGE excel sheet with loads of data that is not needed. i need to sort the data into a few columns, i only need column "A,K,AN,AQ" but in column "AS" i only need certain values (yes,no,blank) i only want the yes and blank values. like i said never done any coding before but i know that you can use an macro to do it so please help, how do i go about this?
before trying to get into macros, try to use functions with if else statements. They are quite easy to handle. Like: If (yes) then put it into X. Later, you could select all needed. Also, check the, how the dollar sign is used
use this links to see, if it is something for you.
One quick and dirty way of getting this job done would be to:
Delete the columns you don't need.
Select all cells in the range you're interested in, click the Insert menu, and choose "Table". If your columns have titles, select the box for "My Table has Headers."
-This turns your data into an array so that Excel recognizes that each row is an entry (instead of thinking that the cells are unrelated).
Now you can use the filter icon in the column headers to select and display only the rows containing the values in column X that you're interested in.
Note that there are some limitations to what the table feature is good for, so, as always, whether this is a good solution for you depends on what you want to do with the data.
I need to create three text form fields in MS WORD, where, when you enter the two integers, in these two forms, the third form sums them. Sorry for my bad english. I added an image, so you could understand me more
http://tinypic.com/r/29lcp00/8
You're going to want to create a table:(example)
in the cell to the right of "Sum" click in it then in the tool ribbon above go to Layout(Under table tools) click on formula and enter =SUM(ABOVE) and set number format "0". This will get you the sum of integers in the cells above within that column.
For more detailed instructions:
MS Article "Use a formula in a Word table"
I have an Excel file that contains some data that needs loading into my sql script. I have gotten most of it done but I am coming up against a problem due to the spreadsheet. The spreadsheet has data in rows that is implicit from the one above it (see the picture below).
Does anyone have any idea of how I can do this? Links to other pages would be welcome,I just wouldn't know how to start searching for this.
Quick way to fill the blanks in Excel:
Select the table
Hit F5
Click Special
Tick "Blanks" and hit OK
All blank cells in the table are now selected. Without changing the selection,
type a = sign
hit the up arrow key on your keyboard.
Hold down Ctrl and hit Enter
Now all previously blank cells contain a formula that references the cell right above. Copy the table and paste it over itself with Paste Special > Values to replace the formulas with the values.
Far less key strokes than writing a macro, and faster in the processing, too.
I couldn't figure out how to word the question, so please comment if you have a better wording.
I am creating a report the has multiple sections, all displayed on one sheet. One of the sections need to be displayed at equal column widths, while the rest of the report has varying column widths. What I would like to do is display this section as some sort of chart/table that will display as if it was part of a continuous report. Should I be using listboxes or is there a better option?
Thanks for any help.
I'm not sure I completely understand your question, but from what I do understand, maybe what you could do is put the part with the fixed column widths on another part of your sheet and then:
Copy it
Go to where you want it in the report and Paste Special > Linked Picture (I)
I think that would give you what you're looking to accomplish, otherwise, please clarify a bit more...
This is a problem that has stumped me for a couple of days, and one I've been trying to work on. Unfortunately I very new to working on this stuff, and don't have a lot of resources trying to solve this problem, so if I am unclear or you have a question please post a comment about it.
The problem I am trying to tackle is this:
After getting external data from a SQL Server and having a table in a spreadsheet, say the is called Products, and has columns for productid (column A), productname (column B), supplierid (column C), and categoryname (column D). Is there a way to define a cell, say E1 where you use can use VBA to create a dynamic query. In this dynamic query you would enter some value of categoryname where it would query the table, and give you the results?
It is possible to perform a dynamic query without using any VBA.
Base your table on "From Microsoft Query" (under the "Get External Data" group on the Data tab). Build your query using the Query Wizard, selecting the table columns of interest. On the "Query Wizard - Filter Data" tab, where you would normally say a particular column must have a specific value, instead of the specific value, use just a question mark (for any and all columns that need to be used to filter). When you return your data to Excel, you will be prompted to "Enter Parameter Value" for each ? you used. Just click OK at this stage.
When the Excel "Import Data" dialog appears, click "Properties...". On the Definition tab click the button labelled "Parameters...". For each parameter, choose to "Get the value from the following cell" and to "Refresh automatically when cell value changes". Click the red arrow button (to select a cell) and click in the cell where each parameter will get its value from.
It's a good idea to have a label alongside each cell, and maybe special formatting for the data entry cell. The results table can be on the same worksheet as the parameter entry cells, when you enter a value in the entry cell, a new query will be run and the result will be displayed.
Here is a link that might help.
It goes into using VBA to filter.
I found it a while ago when I looked for something similar, hope it helps.