excel-2016

How to transpose all subfields in front of the parent field of a pivot table in Excel

依然范特西╮ 提交于 2019-12-14 03:14:32
问题 I have a data of automotive spare parts with their multiple store locations in a warehouse. all I want to do is get the locations in front of the part number, so that it is easy to know all the locations of a specific part number. The current pivot data looks like this I've manually transposed a few rows in the below image, but the data contains around 70K rows, Hence I'm looking for a better solution Kindly refer to the below table +--------------+-----+-------+-------------+ | Item name |

How can I transpose this data set into this specific order?

混江龙づ霸主 提交于 2019-12-13 23:07:46
问题 I am using Excel 2016 and I have a data set with 492 rows and no headers. Data starts at Cell A1 . An extract of the data set looks like this: I want to transpose this data set so that it becomes into this format: I am new to VBA and I am having a hard time finding the right solution. I have tried recording the transpose as a Macro (step by step) and viewed the VBA codes but I still can't make it come together. 回答1: Try this code, but before you do adjust the two constants at the top to match

How can I generate activity map for customer care executives?

对着背影说爱祢 提交于 2019-12-13 09:01:20
问题 I have data of customer care executives which tells about how many calls they have attend from one time another time continuously. I need to find out whether particular executive is either busy or free in a particular period. The timings for the office is 10:00 to 17:00, so I have sliced the time with one hour in each slice from 10:00 to 17:00. The data that I have would look like as: Note: The data given here is some part of original data and we have 20 executives and they have 5 to 10 rows

VBA - Ranking Highest to Lowest by Counting Negative Values?

人走茶凉 提交于 2019-12-13 08:48:28
问题 How to rank highest to lowest by counting negative values? I would probably use something like this follow by if elseif logic but I can't seems to figure it out Set CountRng = range("B1:E1") CountApple = Application.WorksheetFunction.CountIf(CountRng, "<0") CountOrange .. CountBanana .. If CountApple > CountOrange then or endif... Maybe there is a better way to do this? 回答1: You could use this formula: =SUMPRODUCT(--(COUNTIF(OFFSET($B$1,(ROW($1:$3)-1),0,1,4),"<0")>COUNTIF(B1:E1,"<0")))+1 来源:

Formula to check if working out of hours

百般思念 提交于 2019-12-13 03:45:48
问题 I'm trying to find out if someone was not working during 'out of hours'. If Monday to Friday, not between the hours of, 8am to 9pm, then the answer would be "Yes" If it's a Saturday, not between the hours of, 8am to 5pm, the answer would be "Yes" If it's a Sunday, not between the hours of, 9am to 5pm, the answer would be "Yes". Otherwise the answer would be "No". There are 4 columns: 1. Person's Name (A) 2. Date (B) 3. Time (C) 4. Out of Hours (D) I've copied in the formula below which is

Excel VBA create a Named range from formula in worksheet

旧巷老猫 提交于 2019-12-13 03:29:19
问题 Hello I have a problem with some of my VBA code. I am making a multi dynamic table that helps me retain control of my program. So when I adjust something in the table I can just use this code to update all my code. In the table I use this code to locate my needed data, and so far it worked great. Source_1_Criteria = "Factuur" Source_1 = Range("MDM_MDM_Tool_List").Find(what:=Source_1_Criteria).Offset(0, 1).Value Me.ListBox1.RowSource = Source_1 And now I wanted to use the same code with a bit

Excel ODBC Data Connection Query time taken to refresh each query

情到浓时终转凉″ 提交于 2019-12-12 17:12:45
问题 I am trying to test out three variations of a query that is ran from an Excel data connection. I have three individual data connections and three individual tabs that get the data from each connection respectively. The connection string is identical for each query, only the command text (Oracle SQL) is different. Is there a way in Excel to view the execution times for each query? I am specifically using version Excel 2016 MSO 16.0.4456.1003 64bit 回答1: Something like this perhaps (assumes all

How do I break on errors?

安稳与你 提交于 2019-12-12 11:32:36
问题 I have a Function that has some bug in it somewhere causing it to return #VALUE when I try to execute it in excel. I have no idea where the error is, and stepping through the code is just tedious. So I'd like the debugger to break as soon as an error occurs. I tried going to Tools->options->General->"Break on All Errors" but noticed no change. How do I get the VBA IDE to break on an error? 回答1: Something like: Public Function dividddeee(a As Variant, b As Variant) As Double On Error GoTo wtf

Excel listObject doesn't show updated values in worksheet.Change event

大憨熊 提交于 2019-12-12 05:31:39
问题 I have an excel table created programmatically, which uses a List<Object> as a data source. I am creating this table by adding a ListObject using Tools.Worksheet AddListObject() , and then assigning listObject.DataSource with List<Object> . Table is getting created and works fine and user can edit any cell/row in a table. I am handling edits using the WorkSheet.Change event. When a user edits a cell which belongs to a table the worksheet.Change event is fired (Verified by setting a breakpoint

Pull a third value on the basis of two criterias using INDEX and MATCH in excel

和自甴很熟 提交于 2019-12-12 04:08:03
问题 Needed some help with the INDEX match formula, here goes.. Have an excel with two sheets, - Data sheet contains an inventory master of sorts where.. we can see each item being displayed with multiple batches in with each of their own quantities depending on where they're stored.. - Sheet 1 is an order form in which my end user would like to get the exact batch of a product on the basis of two criterias.. Criterias being - product number and qty match to fullfill.. Data - Current Inventory