requests
167 TopicsUse VBA to Autofill a Row until the end of the number of data in another row
Hello, I need some help with the following problem: The Macro should select the first cell with the vlookup (AY2) and autofill the complete range in the column AY until the last row that contain data in the cell next to it (Column E). Column E is the cell that the vlookup refers to. The situation looks like this: The code that I have so far looks like this: Sheets(3).Select Range("AY2").Select ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-41],DennisAR!C[-50],1,0)" Selection.AutoFill Destination:=Range("AY2:AY1662") Range("AY2:AY1662").Select The problem with this is, that the number of rows with data always change every week. So I cannot use a static row number of 1662. I am looking for a way to make Destination:=Range("AY:AY1662) dynamic. In fact it has to refer to the number of rows with data in column E. Thank you very much in advance, KaiSolved668KViews1like83CommentsHOW TO: "If cell contains specific text then return specific text"
I'm trying to extract a bunch of specific text combinations from cells and present it in a new cell. This formula seems to work for two variables but I can't add any more variables too it. =IFERROR(IF(SEARCH("*Sales*",B3,1),"Sales"),IF(SEARCH("*Arch*",B3,1),"Architecture")) The text I would be searching for would be: Sales, Arch, Land, ALL, Contracts, Construction and possibly a couple more. Is there a way to do this?Solved586KViews1like38CommentsVBA to Create Named Ranges
Hello! I am trying to create named ranges in Excel using VBA, but I'm not sure how I would do this when the cell/row range varies. I want to use the module on different excel files. I want the module to create a named range under specific words such is "Calls","Full Name", etc.69KViews0likes1CommentSimple List of Combinations From Single Row Table
Note: Novice User, using Excel 2013. I want to create a non-repeating list of possible combinations/permutations from a single column table. I want to make a simple table called "letters". The number of items will vary. I'm using alphabet characters in the example but imagine these could be easily apples, oranges, salad, drink....and so on. In a separate tab I want to generate a list of non-repeating combinations, order does not matter, and I want to run this list in varying string length (1x, 2x, 3x, 4x, ...) until final result with all items combined. Sample output I imagine would be: A B C D AB AC AD BC BD CD ABC ABD BCD CDA ABCD If possible from formatting perspective, I would like to display the combinations separated by "+" character. Any help would be appreciated.58KViews0likes3CommentsConditional Formatting based on the date of another column
Hi, I'm trying to conditionally format cells in column A based on their related to cells of the same row in column J. Essentially if the date in column A is before the day in column J I want the cell to go green If the date in column A is after the date in column J I want the cell to go red Is this possible? I cannot find a way to do it.46KViews0likes10CommentsFormula language problem
Hello, I'm from Switzerland and we speak 3 different languages. Mine is french but the most important is german. I use excel online, the menu is in french, no problem. But when I want to enter a formula, I have to type it in german. That's a problem for me. I didn't find how to change it. Please help me. Thanx Fabrice40KViews1like19CommentsCount number of blank cells till last non empty cell in a column.
Hello - I want to count number of blank cells till last non empty cell in a column but could not figure out how to do this, can you please help? When I use Countblank formula, it takes an argument as range which should be known in the beginning itself which is a problem because then it becomes manual work to mention the range everytime as my column data (number of rows) can change many times, and different columns can have different number of rows. Is there a way to mention end limit of the range as row number of last non empty cell in that column? Thank you in advance, Saurabh Khanna.Solved38KViews0likes23CommentsExcel Bing Map Chart - Zoom on a Region
Hi, I'm working with Map Charts with dynamic data filtered using a slicer, the map area in the series options is set on Automatic. I want to force excel, also using VBA, to zoom on the area where data are not null. In the attached case the map is not zoomed on the entire Europe because Turkey and Israel are considered as european countries. If I set them in the Middle East region I only shift the problem there. Do you have any suggestion to fully visualize the desired region? Is there the possibility to utilize VBA code to force the map area? Thank you in advance for any clarifiaction. Marino25KViews0likes4CommentsHow to Return Column Data Based on All Populated Cells in Row Range and Match to Other Worksheet
Hi Everyone, I need help with an issue I can't seem to find an exact answer for. Basically, I need to return the column data for all populated cells with the letter "X" in the row. Then return the column header to different cells in the row. Example: User ID Job 1 Job 2 Job 3 Job 4 Output 1 Output 2 Jonh.Smith X X Job 1 Job 4 Bob.Lang X X Job 1 Job 2 The formula will be applied to about 500 rows of data with about 30 columns. I would like all headers to be returned if it has an x in the column for each row. I would also like all the data to be next to each other in regards to the columns (e.g. no blank cells between output data). I assume this can be taken care of with one or two formulas that can be copied to the other cells. In addition, I have another issue. After I get this data, I want to do something a bit more complex. There's another sheet in which I have all of the classes that each user should be taking based on what their job is. Each user will be taking multiple classes. The next thing I need help with is matching the user's job to the classes they should be taking. The above data will be match to the below data. Class 1 Class 2 Class 3 Class 4 Job 1 X X Job 2 X X Job 3 X X Job 4 X X X The other sheet contains data that shows which class a user should be taking denoted by the letter "X" in each row. The final output should be something like this: User ID Job 1 Job 2 Job 3 Job 4 Output 1 Output 2 Output 3 Output 4 Output 5 Jonh.Smith X X Job 1 Job 4 Class 2 Class 4 Class 3 Bob.Lang X X Job 1 Job 2 Class 1 Class 2 Class 3 Another output format could be: User ID Output 1 Output 3 Output 4 Output 5 Jonh.Smith Job 1 Class 2 Class 4 Class 3 Job 4 Class 1 Class 2 Bob.Lang Job 1 Class 2 Class 4 Job 2 Class 1 Class 4 Note: In this case, duplicate values are fine. I am not an advanced user of Excel so any help is greatly appreciated.Solved18KViews0likes16Comments