User Profile
SnowMan55
Bronze Contributor
Joined 4 years ago
User Widgets
Recent Discussions
Re: Few cells in Date column is no formating
The problem is the data in the Date column of Table3—some of it is stored as text data, even though to the eye, it appears to be a date value. It would be best to "clean up" that Date column data, replacing those apparent dates with actual dates. Alternatively, for the most part, you could have your lookup formula convert the XLOOKUP return value, such as this: =DATEVALUE( XLOOKUP(D17,Table3[Consignment ID],Table3[Date]) ) But some of the data will then cause a conversion error. Note that "30-Sep-202" is missing the last digit of the year.37Views0likes0CommentsRe: Adding Cell Value to file string
I gave three suggestions. Which did you try? In other words, show your formula (exactly). And which version of Excel are you using? (The CONCAT function has been available since Excel 2016, the TEXTJOIN function since Excel 2019. If you are using one of those functions with an older version of Excel, that would explain the #NAME? error.)12Views0likes0CommentsRe: Delete cells with exactly three syllables
If you had been intending to identify word length in syllables, you would need a pronunciation source, such as most dictionaries. The Gutenberg Project offers (for free) this old-but-undated Webster's Unabridged Dictionary that could be used for that; the extraction of words and their syllable counts would include significant VBA coding. But the derived word forms (noun plurals, verb tenses, etc.) would be incomplete, and as this is an old work, some word spellings have changed, some pronunciations have changed, and other words were then not yet in use. Identifying the number of consonants is more straightforward, but the sometimes-vowels Y and W cause a problem. See the attached workbook for more information and a partial solution. The count of consonants can mostly be done with formulas (I used helper columns). But to "delete" words requires a script; I include VBA code for that in the workbook. (The workbook is not macro-enabled; I will assume that you know how to create and edit macros.) Edit: The forum software again loses a file that I attached (but it was not the one I intended anyway). Trying again... Edit #2: Well that failed also. So access the workbook on OneDrive: 2025-10-02 RAHI words containing 3 consonants.xlsx95Views0likes0CommentsRe: Looking up specific period financials from multiple period worksheet
This forum makes it difficult to see the images that are included in a reply. (It works OK for images in the initial post.) So I will ignore the conversation you have started with Peter. See the attached workbook for two other possibilities. Edit: The forum software again fails to retain the attached file. So...35Views0likes0CommentsRe: HOW TO: "If cell contains specific text display the immediate next word after it"
Regarding the thread (discussion), I would say "If in doubt, start a new thread (discussion). You can always include a link in your post that refers to the closely-related thread(s), if that is appropriate." You don't say which Excel product you are using (Excel 365, Excel 2019, etc.). If you are using Excel 365 or Excel for the web, the new TEXTBEFORE function handles this nicely: =TEXTBEFORE(" - ", A1) (Most spaces in my formulas are optional; I include them for improved readability. But in this case the spaces around the hyphen are appropriate.) Change the A1 reference if appropriate, and copy the formula down as needed. If you are using an older Excel product, this see the attached workbook.20Views0likes0CommentsRe: Switch Panes Using F6 not working
According to the Microsoft document Keyboard shortcuts in Excel (the Windows tab): F6 F6 alone: switches between the worksheet, ribbon, task pane, and Zoom controls. In a worksheet that has been split, F6 includes the split panes when switching between panes and the ribbon area. Shift+F6: switches between the worksheet, Zoom controls, task pane, and ribbon. Ctrl+F6: switches between two Excel windows. Ctrl+Shift+F6: switches between all Excel windows. Maybe the list of destinations has included the ribbon, etc., for some time (and you did not realize this because the sequence started with "other pane"), but the sequence of destinations has perhaps recently changed. (?)54Views0likes0CommentsRe: Populating a Matrix from a Table
Re: Re 1 — Yes, and the volume of information gets "better", as you will see in my responses to your notes. Re: Re 2 — You will see the problems in the second attached workbook. result2 is the (intententional) cause of the duplication, not involved in prevention of such. The LENgth functions are just another way of checking for empty strings. If your Flight + Match combinations are unique, you won't get "contradictory results" by changing boat/team/skipper names. (But rematches late in the regatta would be a problem, which we've not discussed.) Re: Smokey and the Bandit — No, I never knew that, as I did not watch those movies.176Views0likes0Comments- 56Views0likes0Comments
Re: COUNTIFS for multiple ranges
A simple technique is = COUNTIFS($A$2:$A$1000, "Douglas", $B$2:$B$1000, "<499", $C$2:$C$1000, "*") + COUNTIFS($A$2:$A$1000, "Douglas", $B$2:$B$1000, "<499", $D$2:$D$1000, "*") + COUNTIFS($A$2:$A$1000, "Douglas", $B$2:$B$1000, "<499", $E$2:$E$1000, "*") + COUNTIFS($A$2:$A$1000, "Douglas", $B$2:$B$1000, "<499", $F$2:$F$1000, "*") (Yes, it works without the extra spaces and even if you don't break it into multiple lines.) See the attached workbook for more information.41Views0likes0CommentsRe: Populating a Matrix from a Table
Very well, though you can end up with inconsistent match results (and you did, as Patrick and Hans and I all noticed). So in this newer attached workbook, I have formulas that can handle either one row or two rows of competition data per match, and it includes formulas to identify inconsistent match results. (When you find a solution that meets your needs & desires, please mark it as "the" solution.)115Views0likes4CommentsRe: Populating a Matrix from a Table
I contend that you do not need to enter two lines of data per match, and because of the extra typing and potential errors, you should not do so. The attached workbook demonstrates this with one line of data per match. Because it uses the VSTACK function, Excel 365 or Excel for the web is required.144Views0likes7CommentsRe: Monthy budget planner starting on 15th...?
This solution would I suppose be considered an intermediate level of complexity. The IFS function is not commonly used, and the LET function is fairly new. The important part is understanding the main cell formulas. To make it easier for you, I have added descriptive text in that regard into column C on the _Info worksheet. I added a bonus column on the Example worksheet, and have added links to information about conditional formatting and custom number formats at the bottom of the _Info sheet.40Views0likes0CommentsRe: Excel - Add value based on colour
There are at least two possible sources of error: Data type - The code supplied by Logaraj Sekar sums into a Long variable. Long variables can only contain integer values. As your Total numbers include decimal values, maybe you have changed the data type; but I could speculate that your formulas there are calculating using the custom function SumByColor and are adding in some other values not dependent on color. Timing - A problem in calculating based on fill color (or text color or possibly other properties) that is set by a conditional formatting (CF) rule is that cell formulas (including the custom functions they use) are calculated first; then CF rule formatting is applied. So a change to a value in a cell will occur before the fill color might be changed. The latter is one reason I recommend against doing color-based selection (filtering). Instead, create some categorization values in helper cells (which can be hidden from view), and FILTER (or GROUPBY) based on those values.532Views0likes0CommentsRe: Monthy budget planner starting on 15th...?
The conditional formatting (CF) rule should instead be the one where you always specify a formula (at least in Excel; I would guess Google Sheets supports that also). See the attached workbook for my solution, explanations, an assumption, and reference material.9Views0likes1CommentRe: Rename Cell to Various Different Sheet Titles
"Having to do it manually at the scale required would be quite difficult." That seems unlikely. The "scale" is one new worksheet at a time. But perhaps you meant that manually creating the initial list of existing worksheets would be tedious. Yes, it could be (for example, if you inherited a workbook with hundreds of worksheets). This post suggests how that could be done readily. A better-behaved macro would not modify an entire column on the active worksheet (however important that may be!) without user confirmation, leaving no way to undo the data change. So consider this code instead: Sub LoadListOfWorksheets() ' This macro creates a list of the worksheets in the active workbook ' into column A (see the constant below) of the active worksheet, ' subject to confirmation by the user. Const strCOLUMN_ID = "A" 'for output Const in4FIRST_ROW_TO_USE As Long = 2 'for output Dim objWkbook As Workbook Dim objListWksht As Worksheet Dim strFullColumn As String 'identifies the range Dim in4CellsWithContent As Long '…within the range ' -- Related to the user confirmation: Dim dstrMessage As String Dim in4Icon As Long Dim in4UserResponse As VbMsgBoxResult ' -- Indexes, etc.: Dim in4Wksht As Long '…within the Sheets collection Dim in4OutputRow As Long '---- Capture information and do preparations. Set objWkbook = ActiveWorkbook Set objListWksht = ActiveSheet ' strFullColumn = strCOLUMN_ID & ":" & strCOLUMN_ID '---- Get user confirmation. in4CellsWithContent = WorksheetFunction.CountA( _ objListWksht.Range(strFullColumn)) dstrMessage = "Is it OK to put the worksheet names into column " _ & strCOLUMN_ID _ & vbCrLf & " of worksheet " & objListWksht.Name _ & vbCrLf & " in workbook " & objWkbook.Name & "?" If in4CellsWithContent > 0 Then dstrMessage = dstrMessage & vbCrLf & vbCrLf _ & "WARNING: Column " & strCOLUMN_ID & " has " _ & Format$(in4CellsWithContent, "#,###,###,##0") _ & " cell" & IIf(in4CellsWithContent = 1, "", "s") _ & " that contain" & IIf(in4CellsWithContent = 1, "s", "") _ & " some content. That content will be erased !!" in4Icon = vbExclamation Else in4Icon = vbQuestion End If in4UserResponse = MsgBox(dstrMessage, in4Icon Or vbYesNo _ Or vbDefaultButton2, "Load List of Worksheets") If in4UserResponse = vbNo Then Exit Sub '---- To improve performance of the remaining code, turn off ' screen updating. Application.ScreenUpdating = False '---- Clear any existing content. With objListWksht.Range(strFullColumn) .ClearContents .NumberFormat = "@" 'to prevent Excel from converting certain _ worksheet names to a date or number or Boolean End With '---- Create an unsorted list of all worksheet names. in4OutputRow = in4FIRST_ROW_TO_USE For in4Wksht = 1 To objWkbook.Sheets.Count objListWksht.Range(strCOLUMN_ID & in4OutputRow).Value = _ objWkbook.Sheets(in4Wksht).Name ' in4OutputRow = in4OutputRow + 1 Next in4Wksht '---- Restore setting(s). Application.ScreenUpdating = True End Sub I will leave it as an exercise for you to write worksheet names into one row, rather than into one column. Note that this macro would not even have to be stored in the relevant workbook. You could place it into your Personal.xlsb workbook. As for automatically updating a list of workbooks (whether in a range of cells or an Excel table), that's complicated. See the attached workbook for more information and example VBA code. Edit: fixing another example of the forum dropping the file that I attached Edit: trying a third time Edit: and a fourth time1View0likes0Comments
Recent Blog Articles
No content to show