Excel Function For Hh:mm?

May 23, 2014

see attached excel sheet. On Colum G (highlighted in green) there are hours and minutes. Is there a way I can create a function or macro so that it will convert the values to minutes. For example if the value 1:48 it will convert it 108 minutes or 0:36 will be 36 minutes.

I know I can use =Hour() or =MINUTES() formula but this is long way. My sheet has over 10k data.

Attached file: Book1.xls‎

View 11 Replies


ADVERTISEMENT

Excel 2010 :: VBA Sheets Copy Function Works But Then Jumps To Beginning Of Function

Apr 8, 2014

I'm having trouble using the worksheet copy command in a VBA subroutine. I have the following line in my code:

[Code] ........

When I step through my code and execute this line, the sheet is copied as expected and put in the correct place, but then instead of the next line of code being highlighted, the pointer jumps to the first line of a function (in a different module) in my code.

View 14 Replies View Related

Search Function In Excel

May 20, 2014

How I could create a search function with this document attached. I want to be able to pull the kids name, location & information over to a search engine when looking for them because I will have over 40 different worksheets with numerous names on each of them.

View 5 Replies View Related

Excel Timer Function

Jul 23, 2014

In cell A1 we have the word "one", and in B1 we have the word "two". Would it be possible to have a timer function run for 5 seconds, counting from 5 to 0, and everytime the timer reaches 0, the word in A1 is copied and pasted into cell C1, the timer resets and counts again to zero, this time when it gets to zero, it copies and pastes the word in cell B1 to C1. So it's like a flip flop function, with cell C1 changing it's value every 5 seconds. Also, this code needs to start running automatically when the sheet is opened. Is this at all possible with VBA?..

View 1 Replies View Related

Possible To Set The Value Of A Cell In An Excel Function

Mar 31, 2009

I want to convert an excel spreadsheet into an excel addin file so that users may use the embedded generations of knowledge as excel functions. Unfortunately, I have a problem. I can create macros that allow me to change cells within the spreadsheet and as a result calculate useful values etc, but when I change these macros into functions VBA generates an error wherever I try to change the value of a cell. This appears to be a feature of excel VBA programming. Is there a workaround?

To illustrate what I am trying to do:

The intial spreadsheet (say it is called "MatProps.xls") contains many complicated formulae that calculate material properties. There is a nice user interface where the user enters temperature etc. and there is an output cell where the materials viscosity appears. I want to create a function for example:

Visc(temperature)

If the spreadsheet is saved as an addin, then the user can enter a formula such as:

= visc( 200 )

or = visc ( A2 )

in a new spreadsheet. The function "visc" needs to be able to set the value of the temperature input cell in "MatProps.xls" and then read the viscosity value from the output cell. If "visc" is defined as a subroutine (hence becoming a macro), the input cell can be changed, the output read and everything is hunky dory. When "visc" is changed to a function, VBA can not set a value in the input cell.

View 6 Replies View Related

Excel Date Function

Dec 23, 2009

Kindly help me with the attched file.

I am trying to divide the months into weeks so I could easily identify if a particular date of a month falls on 1st,2nd,3rd or 4th week of the month.

View 6 Replies View Related

Converting Excel Function To VBA?

Nov 18, 2011

how to convert a match statement to vba with multiple conditions? I have situations from where it has to match two criteria, to matching six criteria.

=IF(AND(ISNUMBER(MATCH(1,($K$2:$K$393=Y2)*($O$2:$O$393=$D$1),0)),
'ISNUMBER(MATCH(1,($K$2:$K$393=Y2)*($O$2:$O$393=$G$1),0))),1,"")

View 3 Replies View Related

Excel Function Removing Even Duplicates

May 7, 2014

I want to pull the very last odd duplicate. Example below, I want to pull out A3, and C5 and delete the rest. Is there a function that will allow me to do this?

For example,

Column 1 Column 2
A 1
A 2
A 3
B 1
B 2
C 1
C 2
C 3
C 4
C 5
D 1
D 2
D 3
D 4

View 1 Replies View Related

Excel 2010 :: Function To Create PDF

Jan 24, 2014

The situation I have on my hands is over 200 users, were the majority can't use Excel's built in function to create PDF's.
Yes, I've tried to teach them, but I'm probably not a good teacher.

So, I've resorted to create a button at the top of the worksheet, that says "Create PDF". I thought this was gonna be very easy to program, but alas.

Is there a way to start the built-in Excel dialog that happens when you click "Create PDF/XPS" in "Save & Send"?

View 4 Replies View Related

Word TAB Function In Excel Cell

Mar 19, 2014

I am having a formatting issue within a cell. I would like to accomplish a TAB space between to words so they always have the same space between, no matter how many characters the words or numbers have.

Example: I insert text and numbers from different cells in to one.

Formula: ........

It looks like this... so far so good.
25.02.2014 EUR 5'600.00 1.2177 CHF 6'819.12 Withrawal

But if i insert multiple lines with higher or lower amounts the formating goes wrong.

25.02.2014 EUR 5'600.00 1.2177 CHF 6'819.12 Withrawal
26.02.2014 EUR 10'000.00 1.2212 CHF 12'212.00 Deposit

The target would be to keep straight lines like with the TAB in Word.

snap-tab.jpg

I know there is no TAB whitin excel cells, but maybe there is a way to set a default charachter lenght that can be forced even if the amount or the text is shorter.

View 3 Replies View Related

Excel VBA SUM Function - Range Is Misaligned?

Aug 16, 2014

I am trying to do a simple summation between cell A1 and A5. I tried recording this process using the macro, however, this is what i got:

[Code]......

Naturally, i would think the range of the sum function would be:

[Code] ....

As it represents cell A1 and A5. Is there any reason for this misalignment?

View 4 Replies View Related

Excel 2010 :: Function Error In VB

Dec 21, 2011

Having problems with the code below on a 2010 Excel spreadsheet. The function flags me at first line and highlights Mid. I get a "compile error, cannot find project or library". I'm trying to set GetSheetName = m_sSheet but the GetSheetName function is not declared as returning any type.

Code:
Function GetSheetName(ByVal m_sFormula As String) As String
Dim m_sSheet As String

m_sSheet = Mid(m_sFormula, 2, InStr(m_sFormula, "!") - 2)
If InStr(m_sSheet, "'") Then
m_sSheet = Mid(m_sSheet, 2, Len(m_sSheet) - 2)
End If
GetSheetName = m_sSheet
End Function

View 1 Replies View Related

Excel Chart Using OFFSET Function

Mar 14, 2012

I have an Excel Workbook with data in Sheet1 and a chart in Sheet2.

I use the OFFSET function to define the data range. In Sheet2, I have 3 cells, B2(column), B4(row) and B6(period). I have slider to adjust the values in B2 and B4.

I define the data range at follow.

Xchart =OFFSET(Sheet1!A1,Sheet2!B4,0,Sheet2!B6,1)
Ychart =OFFSET(Sheet1!A1,Sheet2!B4,Sheet2!B2,Sheet2!B6,1)

When I tired to put in this into value series

=Book1.xlsx!Ychart

The error message ...

Reference not valid. Reference must be to an open Worksheet.

View 3 Replies View Related

Excel Formula - How To Use Countif Function

Sep 26, 2012

I need to write a formula in F35 that looks at C4 and if that cell has a # of 25 or greater it will then look at F4 and if that # is greater or equal to 95% it will return a count of 1 in F35. I know how to use the countif function but am stumped when I try to add in the function to look at c4 as a qualifier.

View 7 Replies View Related

Excel 2007 :: How To Use Month Function In VBA

Jun 25, 2013

How to use the Month function in VBA but am not getting the results I expect after reviewing other websites.

I'm running MS Excel 2007.
Simple example:
the worsheet cell, A1 has "5/14/2013" , cell format is DATE

I want to get the month as a number. I know that year(cells(1,1)) results in 2013 so in the immediate window, I try

?month(cells(1,1))
?month(range("A1"))

Both result in Run-time error '13' Type Mismatch.

What am I misunderstanding about the Month function?

View 3 Replies View Related

Excel VBA - Use Concatenate Function To Show A Value

Jul 12, 2013

Possible to use concatenate function to enter a formula to a cell and have the cell show the result?

I enter the following in a cell:

=CONCATENATE("=LEN(""",A2,"""",")") 'A2 contains the string "Exchange rate: 925"

what is shown in the cell is:

=LEN("Exchange rate: 925")

If I manually enter the above len function in the next cell, the cell displays 18.

Is it possible to use the concatenate function, maybe combine with other functions, to display 18 in a cell?

View 5 Replies View Related

Function Code Crashing Excel

Apr 16, 2014

I've been trying to put together a function in excel which will make it simpler and a bit clearer to produce the coefficients of trend lines in cells. I want to produce an excel function like SLOPE and INTERCEPT but for exponential, power and logarithmic trendlines. For example, I can produce the coefficients for an exponential trendline like this:

Code:
=SLOPE(LN(K2:K11);J2:J11)
=EXP(INTERCEPT(LN(K2:K11);J2:J11))

Ideally, I want to be able to do so without the need to convert the terms with LN function, and be able to replace it with a new function that deals directly with an X Range and a Y range

I've produced the following code:

Code:
Function PowerSlope(YRange As Range, XRange As Range)

For Loops = 1 To YRange.Count
YRange.Value2(Loops, 1) = Log(YRange.Value2(Loops, 1))
Next Loops

PowerSlope = Application.WorksheetFunction.Slope(YRange, XRange)
End Function

However, this causes Excel to crash and shut down (not the macro itself, but the entire program). I can't even get the function to run to a break point in the first line before the crash happens. I'm able to remove the FOR ... NEXT loop and use the function to directly return the result of the linear slope, so I'm confident the issue is not in that part of the code.

View 4 Replies View Related

IF Function Nesting In Excel, Allows Only 7 Arguments?

Nov 22, 2007

=IF(E18>760,(">760"),(IF(E18>550,("550-760"),(IF(E18>365,("365-550"),(IF(E18>210,("210-365"),(IF(E18>120,("120-210"),(IF(E18>90,("90-120"),(IF(E18>60,("60-90"),(if (E18>30, ("1-30"), (0))))))))))))))))

If you try to use this it will not work, as excel takes only 7 arguments
can someone help me with this. Do any one know macro for the same.

if you use this formule it will work
=IF(E18>760,(">760"),(IF(E18>550,("550-760"),(IF(E18>365,("365-550"),(IF(E18>210,("210-365"),(IF(E18>120,("120-210"),(IF(E18>90,("90-120"),(IF(E18>60,("60-90"),(0))))))))))))))

View 9 Replies View Related

Excel 2010 :: Random Numbers In One Function

Jul 22, 2012

I'm currently working on my masters dissertation and am using excel 2010.

Basically, I'm trying to generate a list of say, 1000 numbers within a range. I can already do this using the rand() function. However, I need excel to take each random number, apply it into a formula, and then list the answers in a seperate location. This would be easy to do if there was one simple function (which i could just insert into any adjacent cell). The problem is that each random number value is input into a table. The table, which has about 10 columns and 200+ rows, gives one final answer.

I'm sure there has to be a faster way than creating 1000 tables for each random number generated.

Let's say I have a list of 1000 random numbers in sheet 1. the function table is in sheet 2 and produces the answer in the same sheet, in a single cell. I'd like excel to use each random number generated, input it into the function table, attain the answer from the table, and list it in the cell next to the random number.

View 2 Replies View Related

Find If Function In O Column In Excel File?

Apr 6, 2014

find a if function in o column in excel file. I have attached the excel file with manual output.

View 2 Replies View Related

Excel Function For Highest Number For Every 10 Numbers?

Dec 11, 2013

Suppose I have a column filled with numbers in fraction. And correspondingly I have a specific name for every 10 numbers. I want to find out which is the maximum among the 10. For this I could use the "MAX" function in excel. Similarly I have to find the maximum among the next 10 numbers. Since I have about 200 such numbers under 20 different names and eight such sheets (10 numbers per name), it becomes difficult to type the formula and select the range everytime. I would like to know if there is any shortcut for getting this highest number among the 10 numbers.

Eg.
Name Value Number
TU 489.662.272
TU 380.450.0379
TU 331.970.0475
TU 309.641.004
TU 300.890.1215
TU 288.840.0501
TU 280.090.022
TU 278.580.0115
TU 270.160.0397

[code]....

View 6 Replies View Related

Excel VLOOKUP AVG Function? Plant Metrics

May 25, 2009

Basically I'm trying to streamline the way my company does it's metrics. I have a sample excel sheet attached. This data is copied and pasted into excel every week from our documentation operating system.
The numbers in red as you scroll down are time averages for that particular product stream which have to manually inputted which can be time consuming.

Would there be a way i could paste this info into excel and for it to insert these averages for each product stream automatically? It doesn't matter where these averages are placed, they don't have to be directly under the respective product stream.

View 4 Replies View Related

Excel 2007 Net Working Days Function

Jan 6, 2010

I am trying to use the NETWORKDAYS function in excel to calculate the working days for my company. the problem is I m located in UAE and here Saturdays and Fridays are official days off for my company. Now the problem is that the excel have this built in function that Sunday and Saturdays are weekend days. I want to customize the function for my local days off for my company.

View 14 Replies View Related

Macro Or Excel Function For Calculating Average

Apr 16, 2014

Excel function or macros for calculating the average of waterSD column where the TT column is less than or equal to 100(red markings). functions like IF TT IS LESS THAN OR EQUAL TO 100, THEN CALCULATE AVERAGE OF WATERSD....

I had done manually on the right side in the attached excel sheet. only those yellow markings.

Because already I have some macro which do this process but it is not accounting for the TT column less than 100. it starts from 200 TT values. but i need to include 100 TT also. That's is where now we have yellow markings. I will provide you the macro code if you can edit that where it will start calculating form 100TT value, it will be really great. The code is,

[Code] .....

Attached File : average for watersd OF 100TT.xlsx‎

View 3 Replies View Related

Sum Function Visible Cells Only In Excel 2003

Apr 28, 2009

I have a worksheet of data that has 12 columns of numbers (sourced from an external data source) that I have a subtotal for each row. I need the user to be able to hide columns that they do not want included in the subtotal. I have found references to Subtotal(109,D2:Q2) on the net that apparently does this but it doesn't make any difference whether or not I hide columns (I am not using filtering).

Does anyone know how to do this using a formula, (I would prefer to keep this a macro free worksheet)

View 7 Replies View Related

Excel Function To Visualize Cell Reference

Feb 19, 2010

i have two excel files, with many data inside

i need a function that do this:

in the cell A1 i want to visualize the cell A1 of second file
in the cell A2 i want to visualize the cell A13 of second file
in the cell A3 i want to visualize the cell A25 of second file

i explain: in the first file i need a column that in each line show the first cell + 12, then +24, then +36.

file 1 is 1.xls
file 2 is 2.xls
for example A1 have the value 1

if in 1.xls cell A1 I insert =[2.xls]worksheet1!A1 and in A2 =[2.xls]worksheet1!A1+12 in A2 i obtain the value of A1+12=13, but i need to obtain the valour of A1+12=value of A13.thanks

View 10 Replies View Related

Excel 2010 :: Creating VLookUp Function In VBA

Dec 28, 2011

Im trying to write a code in vba in Excel 2010 that would incorporate the vlookup function in excel.

My Data Looks like this:

List 1Weight 1List 2Weight 2List 3Weight 3List 4Weight 4a2.00%j20.00%a14.00%p2.00%b4.00%k32.00%d2.00%y3.00%
c7.50%e10.00%g14.00%u6.00%d8.00%d15.00%h20.00%h7.00%e9.00%q13.00%y45.00%f8.00%f20.00%r5.00%q5.00%
d9.00%g35.00%n5.00%t10.00%h10.00%r14.00%i4.50%w15.00%b0.18Z0.04S0.04Total100.00%Total100.00%Total100.00%100.00%

Where I have X number of Lists, each composed of two columns. The 1st column has the name of each item in each list, and the 2nd column has the value for that item.

What I'd like to do is create a function that would let me choose two lists, and tell me the amount of items in List X and what their values are in List Y, and then total them. Also, I would like it to work the opposite way, and tell me the amount of items in List Y and what their values are in List X, and then total them.

So for example, If I wanted to look at lists 1 and 2, the function would calculate that for List 1, Items D & E are found in List 2 and have a total value of 25%. For List 2, Items D&E are found in List 1 and have a total value of 17%. For all items not in both lists, it would return values of 0.

The code I came up with so far looks like this:

Function AK_Overlap_Go(x, y)
Dim Temp(1 To 2, 2 To 1)
Dim x As Integer

[Code]...

One of the problems I'm having is that the lists contain a different # of items, and so I think I need to loop the vlookup for each row. However, I'm not sure how to do that and get the cumulative values for each list.

View 3 Replies View Related

Excel 2010 :: Copy And Paste Function?

Apr 18, 2012

The problem is that whenever I have any browser open, IE, Chrome, Firefox, etc... the Cut & Paste, Copy & Paste function does not work correctly in Excel 2010.

When I Cut or Copy the blinking marquee around my selection briefly appears and then disappears. When I try to paste, I only have two options under the paste special function: Unicode Text and Text, same with cut and paste, however, the text doesn't actually cut, it only copies.

As soon as I close down any of the mentioned browsers, the full functionality of the cut/copy & paste functions are restored, no need to restart excel.

I need to have open a browser most of the time for work as our system is web based, so closing and re-opening is more than just an annoyance.

View 2 Replies View Related

MATCH Function Integration Into Excel Macro

May 7, 2012

I am using a macro to pull and arrange data from two worksheets into a "master" sheet. After I run the macro, I have a large set of data but no way to see which sheet each entry came from.

I would like to have a MATCH formula run in a column to the left of the data. Column A will indicate if the data line is present in the sheet A, and Column B will indicate if the data line is present in sheet B. In the past, I have used something like the following:

=IF(ISERROR(MATCH([cell],[sheet]![range],0)),"NO","YES")

Things in brackets would be replaced with the relevant cell, sheet, and range being referenced. This line says "NO" if the cell string is not in the referenced range and "YES" if it is.

How would I insert this into the macro to have this run on every row with information in it?

View 7 Replies View Related

Excel 2010 :: Random Numbers In One Function?

Jul 22, 2012

I'm currently working on my masters dissertation and am using excel 2010.

Basically, I'm trying to generate a list of say, 1000 numbers within a range. I can already do this using the rand() function. However, I need excel to take each random number, apply it into a formula, and then list the answers in a seperate location. This would be easy to do if there was one simple function (which i could just insert into any adjacent cell). The problem is that each random number value is input into a table. The table, which has about 10 columns and 200+ rows, gives one final answer.

I'm sure there has to be a faster way than creating 1000 tables for each random number generated.

Let's say I have a list of 1000 random numbers in sheet 1. the function table is in sheet 2 and produces the answer in the same sheet, in a single cell. I'd like excel to use each random number generated, input it into the function table, attain the answer from the table, and list it in the cell next to the random number.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved