worksheet-function

How to remove ALL numbers from a cell with a function or regex?

痴心易碎 提交于 2019-12-13 11:38:54
问题 I have cells that look like this, one per line: Duffy,John: 'Heritage: Civilization and the Jews'- Fanfare & Chorale,Symphonic Dances + Orchestral Suite. Bernstein,'On the Town' Dance Episodes. Royal Phil./R.Williams Lilien,Ignace 1897-1963: Songs,1920-1935. Anja van Wijk,mezzo & Frans van Ruth,piano Hindemith,Trauermusik. Purcell,'Fairy Queen' Suite. Rossini,String Sonata 6. Petrov,'Creation of the World' Ballet Suite. Bartok,Romanian Folkdances Sz 56. Tartini,Flute Concerto in G w.A.Maiorov

how can I compare 3 different columns of data in 3 different worksheets and highlight them in excel 2007?

五迷三道 提交于 2019-12-13 08:45:17
问题 so I have two worksheets with data, I want to compare column A of worksheet 1 to column A of worksheet 2 . Worksheet 1 is a template and worksheet 2 is a data report. Column A for both worksheets are item #s, worksheet 1 updates item #s and data from the report in worksheet 2. I want to create a formula or I guess vba code (I know nothing about VBA) whatever I can that will compare the item#s. I want the formula/code to pull the data from the report in worksheet 2 to the corresponding item #s

How to use Excel VBA to activate and copy row data from multiple worksheets in multiple workbooks into another workbook's worksheet?

守給你的承諾、 提交于 2019-12-13 07:48:04
问题 I have a series of workbooks, containing a series of worksheets, in which I am needing to consolidate those worksheets into one worksheet (they are all identical columns). I have the below snippet from my combined() sub that I'm trying to use to access each file, iterate over them, get each worksheet inside, and then copy the contents of each worksheet over to the combined.xlsm file. My problem is, I'm not quite following how I should activate the workbooks/worksheets with my code. Is my code

VBA remove matching first & last names across 2 worksheets

我怕爱的太早我们不能终老 提交于 2019-12-13 07:34:59
问题 I need help modifying this code to match First and Last names across 2 worksheets, then remove matches from the Sub sheet. At the moment it only matches 2 columns across 1 sheet. Specifics: How do i change this code so Names on 'Sheet 1' Column 'B' are Matched to names on 'sheet 2' column 'E' & all matches are deleted from 'Sheet 1". Same is repeated for 'Sheet 1' Column 'C' to 'Sheet 2' Column 'F'. Sub CompareNames() Dim rngDel As Range Dim rngFound As Range Dim varWord As Variant Dim

How to get weighted sum depending on multipliers in column in Excel?

爱⌒轻易说出口 提交于 2019-12-13 07:06:02
问题 I have the table in Excel: In column C ( Sum ) I want to get sum this way: If in column A or B value is 1 then take Amount 48 and multiply by Multiplier (1) = 2 . If in column A or B value is 0 then take Amount 48 and multiply by Multiplier (0) = 1,5 . Then K1 and K2 summed. So for row 2 the result in column C will be: 48*2 + 48*2 = 192 . For row 5 the result in column C will be: 48*1,5 + 48*2 = 168 . Is it possible to automate this process using Excel formula for C column (inspite of number

Unable to get the Lookup property of the WorksheetFunction class

可紊 提交于 2019-12-13 06:54:44
问题 Following code: For i = startRow To startRow + (nRows - 1) Set lookUp = Range(col & i) Range("I" & i) = IIf(WorksheetFunction.lookUp(lookUp, Sheets("P&C curves").Columns("A")) = lookUp, 1, 0) Range("J" & i) = IIf(WorksheetFunction.lookUp(lookUp, Sheets("G Curve").Columns("A")) = lookUp, 1, 0) Next i In the code, the first time I call WorksheetFunction.lookUp everything works fine, namely it fills the column with 1 where it find something, else it puts a zero, but the second line does not work

How can I make an Excel Pivot Table Value Field not perform any operation?

风流意气都作罢 提交于 2019-12-13 02:24:15
问题 I am trying to reorganize an Excel table with the columns "User ID," "Question" and "Response" so that each column is one of the "Question" values, each row is one of the "User ID" values, and the values are the "Responses." I have gotten really close by using a Pivot Table - the columns and rows are right, but I can't get the Pivot Table tool to display the responses. I have to select an aggregating function (e.g., "Sum" or "Product") which causes the responses to display as 0s or 1s Is

Odd results using the COMBIN function

大兔子大兔子 提交于 2019-12-13 02:10:09
问题 I am a mathematics student and was given a proof detailed in this link. Out of curiosity I tried setting that up in a an Excel table with columns as N and rows as K, so that: =COMBIN(R$6,$B16)-COMBIN(R$6-1,$B16)-COMBIN(R$6-1,$B16-1) should equal 0 . For the most part it does but sometimes I get odd results. For example: =COMBIN(110,35)-COMBIN(110-1,35)-COMBIN(110-1,35-1)=0 and =COMBIN(110,45)-COMBIN(110-1,45)-COMBIN(110-1,45-1)=0 but =COMBIN(110,40)-COMBIN(110-1,40)-COMBIN(110-1,40-1)

Changing cell reference for a SUMIF criterion?

跟風遠走 提交于 2019-12-13 02:05:14
问题 I'm trying to tell Excel to change the cell reference for a SUMIF formula based on the last cell that contains a value in each row. Right now, I know I could write a nested if statement to do this for me, but it's far too unwieldy to be a long-term solution. Example: On a separate report, every person in this list has multiple lines recording their daily sales. On a small scale, I'd simply write a SUMIF that uses for A2, B3 and C4 as criteria. The scale is much much larger, so my current

Does VLOOKUP compare cells

邮差的信 提交于 2019-12-12 22:36:46
问题 I am currently using the VLOOKUP function for excel and I was wondering does the VLOOKUP actually compare cells or does it just use the cell straight across from it? This is my formula "=VLOOKUP(A2,Sheet3!A2:B1814,2,FALSE)" As you can see the VLOOKUP function works find for the first product image but it doesnt for the rest of them( it will give #N/A for most of them because the cell in the pic in the right is empty which is ok), but if you look at the picture on the left, cell A4 is the same