excel-2010

text to columns: split at the first number in the value

假装没事ソ 提交于 2019-12-13 10:06:05
问题 I have 1 column with about 60 cells with values or different length. Each (or at least most) of the values have a numeric characters in the value. I want to split the columns cells into more columns which I normally would do with the 'tekst to columns' function of excel. But this function does not have an advanced option of splitting the value at the first numeric character. splitting based on spaces, comma etc. is possible but this does not help me. Is there any way to divide the cells into

Need a macro to search and update the record from one worksheet to another

a 夏天 提交于 2019-12-13 09:54:41
问题 I need a macro code to search the content(it may be numeric or aplhanumeric) from sheet1 in the cell 1 to 1000 and to search the same text from sheet2. and if it founds then i need to update the content corresponding to adjacent cell. eg: sheet1 1024 D 505A 6057 C sheet2 1024 D 6057 C 回答1: Assuming the look up values are in column A and the value to copy is in column B. Sub FindValues() Dim lookUpSheet As Worksheet, updateSheet As Worksheet Dim valueToSearch As String Dim i As Integer, t As

Excel VBA - Find and Fill in Values [duplicate]

雨燕双飞 提交于 2019-12-13 09:28:39
问题 This question already has answers here : Filling any empty cells with the value above (5 answers) Closed 5 years ago . Sorry for the noobish question, but I'm new and I don't have much of a programming background. I tried this on my own for a few hours, but I just don't know enough. I checked this and this, but I couldn't figure out how to modify it enough. Example data: The first part is how I get the file, the 2nd part is how I want it to look. The first 3 columns have values somewhere in

Hide multiple rows based on multiple ranges cell value VBA

天涯浪子 提交于 2019-12-13 09:22:09
问题 I have a sheet (Sheet3) within a workbook that I would like to write VBA to hide multiple rows based on cell value in multiple ranges. The VBA would have to run through two different steps; the first would be if the first cell within the specified range is blank then hide the entire range (except range 1 since the first cell would never be blank). The second step would be if the first cell in range is not blank, then hide rows in that range that are blank. Here are the specifics: Range 1 A11

Conditional formatting from another cell

冷暖自知 提交于 2019-12-13 08:04:01
问题 I would like to know how to conditionally control formats as below: Cell "A" can have several different inputs. Depending on what, it gets colored formatted. Cell "B" can have a value or not. If it doesn't have it it should stay unformatted. If it has a value it should have the same color format as cell "A". If cell "A" changes it should change the color format in cell "B" also, without changing the value in cell "B". Can someone help me? 回答1: I'm not entirely sure I understand your question

Any function to format 5 as 5/5/5?

ⅰ亾dé卋堺 提交于 2019-12-13 07:52:28
问题 Suppose my cell contains 5 . I want 5/5/5 in cell B of excel sheet.Like A 5 B 5/5/5 A 10 B 10/10/10 How to do it in excel sheet using any function?Any help? enter code here 回答1: In B1 add =A1 & "/" & A1 & "/" & A1 and drag down (from the cells bottom right corner). 回答2: A more generalised version =REPT(A1&"/",2)&A1 . 来源: https://stackoverflow.com/questions/21727956/any-function-to-format-5-as-5-5-5

Delete Certain Characters in Excel 2010

戏子无情 提交于 2019-12-13 07:37:18
问题 I have ~4000 records of data in Excel 2010 that as below: QW3-WE-2232-322-A-2 WETE-33-3REE-33-WEWE-3 DEE-3YED-3432-DXSDDD-3FESE-2 343-34SE-34323-AWBE-3 ABDC-343-3THYT-2 I want the data to look like this where everything after the last dash is deleted. QW3-WE-2232-322-A WETE-33-3REE-33-WEWE DEE-3YED-3432-DXSDDD-3FESE 343-34SE-34323-AWBE ABDC-343-3THYT Was wondering if there was an easy way to do this Excel? 回答1: Answering the original question where at most two "-" separators occur: =LEFT(A1

return only values in a row

大憨熊 提交于 2019-12-13 07:17:21
问题 I have a list of unique ids and values on one sheet in excel as in the image below: Is there a way to return only the values in the order they appear (left to right) on a separate sheet/location? For example, I would want to return for ID '1002' the values 35,32,44.. not the blanks. I am then going to turn those values into a Sparkline. I am using excel 2010, if that makes a difference. Thanks! Sam 回答1: Try this formula: =SUBSTITUTE(TRIM(B2 & " " & C2 & " " & D2 & " " & E2 & " " & F2)," ",","

Merge rows by ID in excel

北城余情 提交于 2019-12-13 05:23:25
问题 I've got a set of columns like this in excel: ID sizeAndColourAndSku_Value 2ff0d3d7-8c18-4386-83be-1b2485fb4ea9 Select size 2ff0d3d7-8c18-4386-83be-1b2485fb4ea9 Extra Small - Available (only 1 left) 2ff0d3d7-8c18-4386-83be-1b2485fb4ea9 Small - Available (only 2 left) 2ff0d3d7-8c18-4386-83be-1b2485fb4ea9 Medium - Available (only 2 left) 2ff0d3d7-8c18-4386-83be-1b2485fb4ea9 Large - Available (only 1 left) 4697ce05-2e50-4e67-85d5-ad733e15ae95 Select size 4697ce05-2e50-4e67-85d5-ad733e15ae95 6 -

Prompt for value, then copy but add text

China☆狼群 提交于 2019-12-13 05:18:33
问题 I've written a macro that prompts the user for a name and then a number. This is used to populate the first 3 cells in column G after the header row. What I really need the macro to do is then repeat this for the next 3 rows, but add 10 the number the user entered. Sub Set_Tag() Dim Tag, TagName As String Dim x, TagNum As Integer TagName = InputBox("What is the product tag name? Ex. Apple", "Tag Name") TagNum = InputBox("What is the first product tag #? Ex. 500", "Tag #") Tag = TagName & "_"