ws2

  1. H

    Vlookup Alternative

    Hi - I'm using the code below to lookup data in Ws2 and place it in Ws1. Currently if the value in Ws1 Column A isn't found in Ws2 Column E it will put a "N" in Column P. How do I tweak it so that it only changes the cells in Column P when there is a match between Ws1 Column P and Ws2 Column...
  2. Y

    alternative to Vlookup with VBA.

    Hi guys, i need help. I have a task and i dont want to use vlookup because it makes the process very slow. im looking for a purely VBA code for the task. here is the code: Sub get_current_status() Application.ScreenUpdating = False Sheets("Sending List").Select Dim Lastrow1...
  3. R

    Excel VBA: For loop - Write value of row number

    The way my code currently works is like this: ws1 has multiple columns and rows of data. The first cell on every row in column A is the title. The titles are from a fixed selection (it's a drop down) which are determined by a list that is on ws2 ws2 has the list of titles, which is h3 until...
  4. J

    Best way to loop this? copying from other WB

    Hi, i have the following: Sub fg()Dim WB1 As Workbook, WB2 As Workbook Dim WS1 As Worksheet, WS2 As Worksheet file1 = Sheets("variables").Range("A1") myFile = "C:\Temp\1\" & file1 & ".xlsx" Set WB1 = ThisWorkbook Set WS1 = WB1.Sheets("Sheet1") Set WB2 = Workbooks.Open(myFile) Set WS2 =...
  5. C

    excel vba Add check and then use different reference and source

    So I am using the below code and it works perfectly thanks to some help on here but I want to add a check so that if the row has data but the value of ws1 column G is empty then I want to get the value of ws1 G by using ws1 E as the reference and getting the value for G from ws2 column A. The...
  6. S

    VBA help to transfer additional data to ws

    Hello Forum, I use this code to copy data over from ws2 to ws1 when cell C3 is updated. From ws2 I need the data in column "H" (10) to copy to ws1 column "N" (13) and I cannot figure out how to make this addition. I tried adding in "sn(i, 13) = arr(x, 10)" But this does not work. Thank you...
  7. M

    Repairs / Records Removed: Sorting

    I have a file that consistently reports "Excel was able to open the file by repairing or removing the unreadable content". I have narrowed it down to a single macro which runs, and it seems to only cause "damage" when the file is opened on a different computer (on the same LAN) from which the...
  8. F

    Search for Match and Return Value on 2 lists

    Hello..... I have code that works well to use a value in each row in a column in WS1 and compare it to a list of names in WS2 and if there is a match, put the value in WS2 A1 into Cell O of WS1 (offset 11 columns). What I want to do is make this an "OR" and compare to WS2 range A2:A14 OR WS2...
  9. S

    Copy based on condition

    Hi there everyone. Hopefully an easy one :) I have the following code which I am using on another part of my macro (which might be helpful.. I think). Ultimately what I need to do, is copy columns A:J for any row where column L equals Not Exported. It will copy to sheet WS2, beginning on row...
  10. M

    Transferring Data Between Worksheets

    I'm trying to compare columns of first and last names (A:B) on ws1 with columns (A:B) on ws2. If the name exists on ws2, then I need to copy the value of ws1 columns (I:L) to ws2 columns (D:G) for the matching row.
  11. R

    Rows that stick together

    So some of you have already helped tremendously on this project, and it turned out great! I tested it live and I think I need to make a few changes as I found a few flaws in the design. And I am looking for some help. For example I have 3 main sheets (technically 7 as there is 5 days in the...
  12. M

    For each stops early, sometimes

    I'm trying to use the following code to find some dates (VLOOKUP) on a different worksheet and fix their values in place (Copy/PasteSpecial). Then the macro should look through the dates and clear them if they are in the future (> Date). This macro works, but the first time it's run after a...
  13. M

    VLOOKUP, but causes result to stay permanently

    Perhaps this is wishful thinking, but I'm looking for something that retrieves data similarly to a VLOOKUP function, but the resulting value would then become permanent. My example: I have a list of names on ws2, and an identical list of names on ws1, plus some extra outliers on ws1 that will...
  14. S

    Formula to copy text from a different sheet with a condition

    I have 2 worksheets from 2 separate workbooks. For this question I will say Workbook 1 and worksheet 1 is called WB1 and WS1, the other is WB2 and WS2. On WB2, WS2, I want it to extrapolate row information from WB1, WS1 if it contains the word DV in Column A2-A117. I want it to pull info...
  15. S

    copy and paste macro help.

    Hello, I use this macro to copy and Paste from WS1 to WS2. But I need it to copy and paste new data on the next row down on Ws2 When the button is selected. I cant figure this out. Thanks for all help provided. Sub ButtonCode() Dim ws1 As Worksheet, ws2 As Worksheet Dim DestRow As...
  16. M

    #REF! Error for Dynamic Range Within a Formula VBA

    I'm trying to use VBA to insert and fill down a Match formula from S7 to the last row in column S on ws1, and the range of the Match formula should be A3 to the last row in column A on ws2. Here's what I have, and it sort of works, except that the resulting formula has a #REF ! error. I'm...
  17. L

    Sort and filter problem

    Worksheet 1 contains data I want to sort. WS2 contains relative cell references (=) to WS1. When I sort and filter WS1 the cell references in WS2 do not change so the data in WS2 is incorrect. How do I solve this please?
  18. B

    Highlight Key Items

    hello all I have this script which functions as expected, what I'd like accomplish prior to replacing the applicable values is highlight the values. unsure maybe stop at this point or continue to the replacement. Thanks as always Sub HighlightValues() Dim c As Range Dim k As Variant...
  19. H

    Formula not working as intended - also open to new way of achieving result

    Hi again! <colgroup><col><col><col><col><col><col><col><col span="2"></colgroup><tbody> My formula isn't working as intended anymore. Here is what I wanted: I have 3 worksheets: WS1 WS2 WS3 WS4 Vendor name Expiry date Formula field Vendor name Vendor...
  20. H

    Help - lost in big formula

    Hi everyone, I got lost trying to do a formula... Hope you can help me! I have 3 worksheets: <colgroup><col><col><col><col><col><col><col></colgroup><tbody> <colgroup><col><col><col><col><col><col><col><col><col></colgroup><tbody>...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top