insert hyperlink for more that 1000 entries in excel - excel

i habe many entries in excell ( more than 3000 ).
actually their are hyperlink but just like a text. i need to convert them in excel hyperlink but dont know how do to that with thousends of entries. please help.
\\192.162.0.2\public
\\192.162.0.2\public\Big-PC.log
\\192.162.0.2\public\InstantReview-ExperimentalHive.reg
\\192.162.0.2\public\InstantReview.reg
\\192.168.0.2\public\Invitation-BLUB.ir

Just use the formula & drag;
=HYPERLINK(A1, A1)
Edit;
I put =HYPERLINK(B3, B3) in the formula bar and hit enter (to get the colour effects that don't seem to appear otherwise for some reason) then dragged down;

I'll give you a generic answer to these sorts of problems.
start Macro recording
convert the first item (convert your
fisrt text cell to hyperlink)
stop Macro recording
open the recorded macro and copy the
code snippet that does the job
write a function (using the code snippet) that iterates over
all your items and does the job
(If you have further problems with one specific step, then that should be considered as a new question, I guess)

Related

Required macro excel code for search and copy paste query

I need to write a vba macro code in excel
I need to search for word " item" in column A and if found I need to copy data in "C2" and paste from "B3" to until the next word " item" is found and again I need to find next word " item" and copy paste as before in column "B"
I have attached a screen shot of inputs and outputs
Can any one support to write a vba code so it will be helpful for my daily activities..i/p o/p data screen shot
Try:
=IF(E6="","",IF(AND(LEN(E5)>1,LEN(F5)<1),IF(AND(LEN(G6)<1,LEN(F6)<1),"",E5),D5))
or,
=IF(LEN(E5)<1,"",IF(AND(LEN(E4)>1,LEN(F4)<1),IF(AND(LEN(G5)<1,LEN(F5)<1),"",E4),D4))
drag down
This kind of approach solves alot of problems. Let me know if works for you - it should - and if my answer answers your question can you mark the tick box? A Macro would take more time to make. Writing a formula is faster, but one could adapt the formula (its process) into a macro too.
Plus, With the formula hiding/placed in column B you can see the cells updating as you input your data into your sheet.

Using an Excel Macro to identify and then filter out specific rows

I've been attempting to create a macro to grab certain rows in my excel sheet to no avail. Here's what I am looking at before.
I need to find the wording "Car result printed - (Car Name)"(shown under A2) and grab the content RIGHT below it and than paste that content to another column. As the second photo shows, F-150 was properly pasted into another column. Instead of a single instance this would have hundreds obviously.
I tried using a variety of macros, but kept getting stonewalled (probably because my lack of VBA). Any help would be appreciated!
Thank you all.

How to change the tab color based on a cell in the worksheet?

I have a very large spreadsheet with lots of worksheets that I use to create invoices based on a project number. Each project doesn't get billed on a monthly basis. I have to print each invoice to PDF and to avoid having to open every tab to see if there is information to bill, I'd like to change the tab color based a cell which contains the total of the invoice.
I have used VBA very little but have found several macros that are trying to do the same thing but because they rely on something different, I can't get what I need. I found one that just turns all the tabs a color. I found one that changes the color based on a true/false formula. I don't have the knowledge around this code to change it so that if cell H22 is >0, it turns the tab a color.
The invoices created before I took my role aren't consistent so not all totals will be in cell H22 -- it could be H14. I'm even willing to put a button on each tab that I could press to apply the macro as I do my preliminary work on each tab. I just don't have the knowledge good enough to know how to write the code. Thanks!
The easiest way would be to find an cell that none of the worksheets use (say AZ99) and do the equivalent of the H22>0 example you described on each sheet.
e.g sheet1 might have AZ99 as X10>0, sheet2 might be Y11>0 or whatever.
Use the true/false VBA code to look at cell AZ99 or whatever the cell you choose is.

Auto populate column by reference?

I am working on the following sheet, called Raw_Data:
In a new sheet, I want to copy the registration_date column by reference. This means that if I change the registration_date on the Raw_Data, the changed value should be reflected in the new sheet.
To implement this, I have entered the following =Raw_Data!C2. So far it works fine as you can see below:
But the problem is that when I double click on the little green square here, it doesn't automatically populate the entire column.
I don't want to manually drag-and-drop because there are several thousand rows. Does anyone know how I could automatically populate the column by reference?
While there are some automation things you could do, I think a lot of that would be overkill for what could be just an input issue with how you are choosing to copy in Excel.
If you find that you need to copy a large block of data, rather than dragging the corner of your cell like that, try one of these alternate methods:
While selected on the cell, press CNTRL + C. Then in the 'Name Box' (where it shows the address of the cell you are on), type in the cell where you want to go (A17000); then press SHIFT + ENTER. This will jump you to that cell, and will highlight all cells inbetween where you were and where you are going. Then press CNTRL + V.
Another method of moving around a large data block in Excel is to hold CNTRL and press an arrow key. This will move you as far down the data block as possible. Note that this will not work on a blank sheet, as there is no data and therefore Excel doesn't know when to stop.
Again - some automation would be possible here, but moving around an Excel worksheet is something you will be doing too frequently in too many different ways to want to automate what might be 5 keystrokes once a week.
In excel the "double click to fill" feature is a heuristic based feature that fills the cells that appear to be relevant with the selected formula (+ reference corrections).
In your case there is no hint the heuristic can use to tell what to fill so nothing is being done.
Regarding dragging "several thousand rows", that's not a real problem. If you only do it once, there no reason to even trying anything "smart" or complicated.
You can also copy the source cell, select all the cells you want to fill and then paste. You can select cells in any way you like, not just dragging.
You could instead of all the dragging/copying/filling approach simply copy directly from the source, and paste by reference.
As a last resort, you can always go for a VBA solution to do that for you.

excel macro - new row copy

Been searching around for a while now without any answer.
I'm creating an automatic schedule that calculates working hours and so forth for my employees.
Instead of creating new rows at the bottom of the table manually, putting in all the funktions and style the cells with specific formats I want a macro to do this.
I have created a macro but, the problem is that everytime it is executed, it starts of course from the place where I created it in the first place.
So, the macro should somehow search for the last place in the table. Copy the two last and create new ones including the if-statements, cell format and styling.
The second macro I need to create is a toggle function where the macro searches for the rows that containts the working hour (underneath the times) and hides or unhides the rows. Is that possible?
I really hope that someone can help me! Thanks!
/Martin
Screenshot: http://www.martinhult.se/screenshot.jpg
Would be better if you can share your first macro (which I believe is recorded?).
But essentially you want to use something like "activesheet.usedrange.rows.count" to see how many rows have already been used and then start at used rows + 1.

Resources