excel-2013

Summary Report: Modifying Solution

て烟熏妆下的殇ゞ 提交于 2019-12-13 06:06:27
问题 This is a follow up to a question found here. The solution provided by Grade 'Eh' Bacon assumed that each decimal code corresponded to a specific status, however that is not the case. The decimal code must first be converted to binary and each bit corresponds to a specific description. So, for example, 0000000000000001 would correspond to just one status "Idle Cutout Active", and 0000000001000001 would correspond to two statuses "High Coolant Temperature" and "Idle Cutout Active". I've

Conditional formatting for a column based on the value of header

一个人想着一个人 提交于 2019-12-13 05:52:20
问题 I have several columns where the data from rows 7 onwards changes depending on the selection made from a dropdown menu in row 6. Most of these options will result in textual or number based values appearing, but two of them would need to be formatted as currency. Essentially what I want is a conditional formatting formula that says; if row six in any column has a value of “Implied Unit Rate” or “Annual budget”, format rows 7 and onwards in that column as currency. I can get this to work by

How to repeat all column values for each row in another column

眉间皱痕 提交于 2019-12-13 04:43:09
问题 I have a table that has two columns: Height Width 400 200 500 300 600 400 700 800 ... And need to create a second table next to it to repeat entire column height for each value in the width column, whilst copying, to basically get every possible combination: Height Width 400 200 500 200 600 200 700 200 800 200 400 300 500 300 600 300 700 300 800 300 回答1: The simplest way I could think of running nested loops. You might need to modify the code below depending on the structure of your sheets,

Copying Cells and Changing BG color in Excel 2013

≡放荡痞女 提交于 2019-12-13 03:49:56
问题 I am attempting to create a summary page in Excel for projects under discussion. Each separate sheet in the workbook will have a writeup of the project, status, expected ROI, etc. The first page in the workbook will have a summary of salient points from each project, one project per line. Here is the code that I have, adapted from this answer here, since I am not copying a range but rather specific cells. Private Sub Worksheet_Activate() Dim ws As Worksheet, sh As Worksheet, pRng As Range Dim

Can you use Cells instead of Range inside of an Autofill function?

断了今生、忘了曾经 提交于 2019-12-13 03:44:27
问题 If I have this, for example: Sub ExampleThing() Counter = 13 For i = 1 To Counter Range("A" & i) = Rnd Next Range("B1").Formula = "=(PI()*A1)" Range("B1").Select Selection.AutoFill Destination:=Range("B1:B" & Counter), Type:=xlFillDefault End Sub What if, instead of using Range() under Destination, I wanted to use Cells()? Like, instead of having cell references inside the range function, replace that with Cells(), like this: Selection.AutoFill Destination:=Range("Cells(1,2):Cells(Counter,2)"

excel formula not updating after sas export

假装没事ソ 提交于 2019-12-13 02:25:02
问题 I'm running a SAS program that updates two sheets in an Excel workbook. The workbook contains a third sheet that is just formulas pointing to cells in the SAS exported sheets. Whenever I rerun the program with new values, the formulas on sheet 3 don't update their values. An example would be this: sheet1 a1 = 2, sheet2 a1 = 3, sheet3 a1 = sheet1!$a$1+sheet2!$a$1 (shows 5) I rerun the SAS export changing the first two values to 3 and 4, but sheet3 still shows 5 instead of 7. When I click on

Formula to remove entire words that start with certain characters

橙三吉。 提交于 2019-12-12 18:33:26
问题 I want a formula that searches a string for all occurrences of http and removes that entire link. For instance: This is the best story ever http://www.usatoday.com make sure to read it twice. http://www.usatoday.com/image.jpg would become: This is the best story ever make sure to read it twice. From what I've read, this should do it: =TRIM(LEFT(A1,FIND("http",A1)-1))&RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND("http",A1))+1) but I'm still getting #VALUE! . I'd like to be able to have the code find the

How to set 'Fit all columns on one page' in print tab

断了今生、忘了曾经 提交于 2019-12-12 08:19:41
问题 The only thing I would want is to always set the 'Fit all columns on one page' setting when users open the Print tab in Excel. And no, they don't want to do it themselves. What a surprise :) Here is a screenshot of where that is in Excel 2013: Tried to look for some VBA code like the following but without success. With Sheets("Print Letter").PageSetup .FitToPagesWide = 1 .FitToPagesTall = 1 End With 回答1: Try setting the .FitToPagesTall to False to be able to manually set the .FitToPagesWide

Add Numbers Until Value Reached

有些话、适合烂在心里 提交于 2019-12-12 07:00:03
问题 I want to have a threshold value in one cell(A1) and take it as a reference for adding cells. Suppose I have A1 - 10 A2 - 4 A3 - 2 A4 - 3 A5 - 4 A6 - 6 I want to add cells based on A1(Threshold). As A1 is 10, cells from A6:A5 should be added - Result:10 If A1 is 6 then cell A6 should be returned- Result:6 If A1 is 16 then cells from A6:A3 should be added - Result:19 Is this possible without VBA? Can i get count of number of cells in return along with sum? 回答1: I've added some progression SUM

Cancelled Save De-activates Links

感情迁移 提交于 2019-12-12 06:19:38
问题 I've put a script together which extracts a list of files from folders and subfolders from a given path. In column B there is a unique, incremental ID created for each file found. This ID is formatted as a hyperlink. When the user clicks on the hyperlink, it opens a dialog box allowing the user to select the file to save from a server to a locally stored drive. With help at this post, this is the code I'm using to allow the user to select the hyperlink and save the file. Private Sub Worksheet