code & formula

  1. J

    Indexed time

    Hi everyone, I am trying to write a code or function that will index the the time. I have data ranging from January 2012 to December 2014. I'd like to place in a column nearby it that if it's Jan-2012 then give me 1, if Feb-2012 then give me 2,...,Dec-2014 give me 36. Is there a way to do this...
  2. K

    Two Issues: clearing incorrect value from userform and spreadsheet and clear last row of information pasted

    Hello, I have been trying to work on a solution for a week and a come close but no cigar. I have a user form that the user enter's in their %'s for specific fields. Not all textboxes will have a %. What I'm trying to do is not allow the sum of all textboxes to exceed 100%, if it does, all...
  3. P

    How to use the path of an excel filevariable in a formula?

    Regular Formula: =VLOOKUP(A1,'SomeDrive:\SomeFolder\SomeSubFolder\[SomeFileName.xlsx]SomeSheetName'!$A:$K,11,FALSE) The Formula I need: Like =Vlookup(A1,GetPathofFileVariable(SomeFileVariable) & SomeSheetname!$A:$K,11,FALSE)
  4. R

    Loop through all worksheets in all sub-folders and enter name and number in A2 and B2 based on sheet name.

    Please help ! I want the macro to go through all the files in a sub-folder and look-up the file names mention in the another excel sheet "Sample 1", and open and paste the "name" in "A2" and "no" in B2. "Sample 1", A B name no. Central 5656 Sustainable...
  5. G

    Open most recent file and V-lookup to extract data

    Hello, Please be patient with my verbiage, as I am new to VBA coding, I appreciate your help GREATLY! I've done the best research I can do on these threads, but I can't seem find one specific to my quest. Goal: To write VBA code that opens the most recent file created in a specific folder...
  6. T

    Highlighting Active rows without losing background color saving issues

    I am using the following code to highlight the active row in my spreadsheet while not losing my previously set background colors. The issue is when I save the document the previous active row stays yellow. I tried to use the "beforesave" in the workbook's code, but I don't think I did it right...
  7. J

    Time and Inventory Management HELP!

    Background: I am a new intern at a custom interior design company and I have been hired to streamline and simplify the process that they go through with tracking inventory and the time spent on different jobs so they can calculate their job costs accurately. I have spent days working on this...
  8. E

    error on sending email - 2 lines of code i need help on

    i need help on 2 lines of code Sub sendemail(subject_line As String, mail_body As String) Dim olapp As Outlook.Application Set olapp = CreateObject("outlook.application") Dim olMail As Outlook.MailItem setolmail = olapp.CreateItem(olMailItem) olMail.To =...
  9. K

    R1C1 Style formula does not yield any value

    Hi All, Here is the code I am using to find duplicates amongst certain cell values ( max 12 here). I have been able to implement it but by using a variable in the R1C1 style formula. Here is the code: dd = -1 * (12 - Frozen) ActiveCell.FormulaR1C1 = "=IF(SUM(IF(FREQUENCY(MATCH(RC" & dd...
  10. F

    Need VBA to Add New Sheets, Name them and Copy Rows based on one columns information

    Hello All, I have been slowly learning to build Macros and cannot seem to comprehend enough to tie it all together for this project. I have a worksheet with 85 Vendors (currently but will grow) all in column D. My worksheet varies from week to week but can be 5000 rows at times and will...
  11. C

    VBA - Copy and paste entire row to second sheet based on cell value

    Hello, Today I finally taught myself a basic understanding of macros/VBA. I've made a lot of progress on my project, but am stuck at the moment...Here's what's going on: I have a sheet titled "All Trades" that contains the raw data like the example below. I have two other sheets titled "As-Of...
  12. N

    Check to see if string is anywhere in a column

    Hey there ladies and gents, I would like to write a VBA code that would take the all the cells in a column, column B, and see if all of these different cells are anywhere as a string in column K. The only problem I continue to run into is the fact that there are more or some missing characters...
  13. N

    VBA question

    Hey there! So I'm relatively new to VBA and I was wondering if there was a way to write a code that would see two columns, each with a date and a time in their respective column (ex. -> 6/7/2013 5:50:00), and determine the amount of hours that had passed between the two dates/times. It would...
  14. S

    Excel Emails

    I have been previously helped by being directed to a site on excel emails, but i really dont have the program writting knowledge to convert what i see into what i want. Basically I have a table (made a simple version below) i have various orders but depending on teir status they may go on hold...
  15. S

    Help with a drop down/search box.

    Here's what my workbook looks like. It's got 1 master sheet that has 200 rows of information. Each row is for one neighborhood. The following columns B-D list the city requirements, community requirements, home owner requirements, builder requirements, and county requirements for each of the 200...
  16. A

    Name formatting in excel

    How can I switch a cell of "first middle last" to "last, first" in excel? the cells are different some have middle names and some don't. what is the general code. such as switching from thomas allen smith adam wilson amanda r smith to smith, thomas wilson, adam smith, amanda...
  17. D

    make one cell equal to another cell in the active row

    Can anyone help me with code for the following application? I need the value of a cell (G2) to always equal the value of the cell in column C on the active row. For example: I have a spreadsheet for product information. Each product has 1 row of info and 6 columns. If I am on any given...
  18. C

    Extract partial filename and populate in spreadsheet

    Hi All I have manage to "cobble" some script to import a numner of files into a single consolidate list. In Coulmn A of the file produced, it inserts the full path and filename. Is there a way of only inserting the filename? Code: Private Declare Function SetCurrentDirectoryA Lib _...
  19. pedie

    Can the cell value show the formula result without showing the formula in formula bar or in the cell when a user click on cell?

    When i run the code - can i make the code show the result of the formula and not the formula in the cell? Suppose i have in cell A1 = now() or maybe = vlookup(B1,D1:F12,1) etc

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