User Profile
SnowMan55
Bronze Contributor
Joined Oct 08, 2022
User Widgets
Recent Discussions
Re: Cumulative Sum of Each Column or Row
My goal is maximum efficiency. I have no comments regarding your code (I don't want to dig into that tonight), but want to make you aware of how you can determine calculation performance yourself in Excel for Windows. High-precision timing can be done using VBA macros and other procedures. (And those procedures can be placed in your Personal.xlsb file, so the workbook you are measuring performance in does not need to be macro-enabled.) See Excel performance - Improving calculation performance , specifically, the "Measuring calculation time" section. But also read Speed of Functions vs. other Functions vs. VBA Macro69Views0likes0CommentsRe: Formule voor zoeken tekst
I will try to attach a workbook that has more use cases. Edit: That failed, so here is the file on Google Drive: 2026-01-17 EDWI wildcard search for rows.xlsx Translation by Google Translate… Vertaling door Google Translate... Ik zal proberen een werkblad bij te voegen met meer voorbeelden. Bewerking: Dat is mislukt, dus hier is het bestand op Google Drive: 2026-01-17 EDWI wildcard search for rows.xlsx21Views0likes0CommentsRe: Welcome to the Excel Community
Asking questions is what this forum is (mostly) about! Near the top of the main page... * You can use Microsoft OneDrive or Google Drive or Dropbox or ... BE SURE TO SET SECURITY such that everyone can read the file, but noone but yourself can edit (change) it. ... While files can be attached to a post (and to replies to a post), it seems that "newbies" such as yourself are not immediately permitted to do so. (And since the forum software was supposedly "improved" in November 2025, many members have found that the file they attach disappears.) So you would be taking a chance by assuming you could attach a file to your first few posts. Many people instead insert an image (a partial screenshot) in their post, though that is not as useful as a file. ** Include information about which Excel product (Excel 365, Excel 2019, etc.) you are working with, on which platform (Windows, Mac, the web, Android...). If you are not confident in the clarity of your question, describe what you are attempting to do, in general terms. If you find an old post (say, older than 6 months) that is relevant, include a hyperlink to it and explain why the responses to it do not resolve your issue (avoid the temptation to add a reply to it).16Views0likes0CommentsRe: Complex equations with multiple input values
That's not a lot of information you are giving us. For starters, which Excel product (Excel 365, Excel 2019, etc.) are you using, on which platform (Windows, Mac, the web...)? Sometimes, the solution requires an Excel function or feature that is not present in older products. The Excel formulas will depend on a number of factors; see the Calculations worksheet in the attached* file for my guesses. Collecting those factors into one sheet, separate from the reference data, makes things clearer. And without further information, I will assume that a larger Illness Factor should result in a larger MER. (I multiply the RER by the Illness Factor to get the MER.) There should be no reason for the users to enter a shorthand notation for the food product; selection from a dropdown list of the product names (possibly including container sizes) should be made available. Excel's Data Validation feature allows this. If any of your offered diets involve multiple food products, some design changes would probably be needed. But this should give you a start, and help you develop ideas for the design. Read the _Info worksheet for more information and references to documentation/tutorials. * The "attached" file might not be attached. Following a change to this forum's software in November, files that we attach frequently disappear. If the attach does not work, I will put the file on OneDrive and post a link to it. Edit: retrying the attach Edit #2: That did not work, so get the workbook here: 2026-01-07 CT08 feeding calcns.xlsx22Views1like0CommentsRe: Worksheet tabs to include date from a cell
Assuming that your "linked to cell H1 on tab 1" means that H1 on the user-input worksheet is referenced in an Excel formula on another tab, yes, that can be handled, in one of at least two ways. I will try attaching a workbook (built from Lorenzo's starting work). The forum software may or may not accept it. Edit: That did not succeed, so here's the workbook on OneDrive: 2026-01-06 RB AutoRenameWorksheet.xlsm45Views0likes0CommentsRe: Toggle colour of a clicked-on cell
Yes, the text in the cell can be changed at the same time. The simplest change would be to assign an appropriate value in statements such as: Target.Value = "Completed" in multiple lines immediately after a color is changed. (If you have code in your Worksheet_Change event handler, you can avoid triggering that event by wrapping each of those assignments with Application.EnableEvents = False (before the assignment) and Application.EnableEvents = True (after the assignment) statements.) Alternatively (and a better design) would be to check for the expected text of the cell and change only the text; as for color, handle that with conditional formatting. Another alternative (which avoids VBA altogether, and does not relquire double clicks) would be just to use a dropdown list (a feature made available via Data Validation) of permitted values.8Views1like0CommentsRe: Toggle colour of a clicked-on cell
Yes, you can cycle through three (or more) colors by adding logical tests; for example: Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) '---- For cycling colors: Const rngColorCycleCells = "A2:A30,C2:C30" Const in4DarkGreen As Long = &H6400 Const in4Red As Long = &HFF Const in4White As Long = &HFFFFFF 'For more color codes, see "Hex triplet" values on pages linked from _ https://en.wikipedia.org/wiki/List_of_colors_by_shade '---- If the double-clicked cell is within the color cycling area, ' cycle the font color through the three defined colors. If Not Intersect(Range(rngColorCycleCells), Target) Is Nothing Then If Target.Font.Color = in4Red Then Target.Font.Color = in4DarkGreen ElseIf Target.Font.Color = in4DarkGreen Then Target.Font.Color = in4White ElseIf Target.Font.Color = in4White Then Target.Font.Color = in4Red Else '...if that cell's font color is any other color... '[It's your decision: Either start the color cycle with the 'next statement, or make no change by commenting it out or 'removing it.] Target.Font.Color = in4Red End If Cancel = True End If End Sub23Views1like1CommentRe: Welcome to the Excel Community
Yes, that might be handled with a single formula on your Single worksheet. It might be handled like this (depending on your version of Excel, which you should mention when posting): =SORT( VSTACK( 'Company Type 1'!A2:.A999, 'Company Type 2'!A2:.A999, 'Company Type 3'!A2:.A999, 'Company Type 4'!A2:.A999 ) ) Naturally, you would use your worksheet names, and change the column letter from A to whichever column contains the company names (it can be different for each worksheet). And by using a "higher" letter right after the colons, you can retrieve multiple columns at once. VSTACK info The periods immediately after the colons reduce the ranges to however many rows contain data, as described here; just remove them if your Excel version does not support that. In the future, please do not add your question/issue/problem to the end of an unrelated post such as this. Instead, click the big blue "Start a Discussion" button near the top of the main page to start your own message thread.142Views0likes0CommentsRe: Formula to retrieve data from several sheets and return values from given criteria.
I agree that your formula structure works if the formula is entered correctly. But do you actually need/have the staff member's name entered twice on the source worksheets (both columns C and D)? See the attached workbook for more information. Edit: The forum software is "losing" attachments frequently. Trying again... Edit: The attachment was "lost" again. Including a link to OneDrive instead: 2025-12-11 SWEX staff location by day.xlsx93Views0likes1CommentRe: Drop-Down List + IF function
I do not know the answer to that. I re-built the formula (based on mathetes' revised workbook), and it works as intended. For the benefit of those who may refer to this thread, I decided to post a more complete design, with alternatives. See the attached workbook. Edit: Once again, the forum software loses, the attached file. Trying again...46Views0likes0CommentsRe: Need help with conditional fomatting formula based in text on cells
While others have posted basic formulas, it occurs to me that they may result in "false positives". I immediately thought of the INC in LINCOLN (whether a given name such as Lincoln Chafee or a surname). Other people who would be incorrectly highlighted: Prince R. Nelson (yes, "the" Prince) Linda Prince (film producer and director in independent cinema) anyone with a surname of Finch I don't know if you are attempting to select all businesses (and even all organizations) in your data. These would be highlighted: Incarnate Word Church (not their exact title, but you get the idea) Incredible Weddings Agriculture & Clean Energy Incubator (Texas) Inca Design (UK) And other hypothetical businesses also (I made up these; no guarantee that they do not exist): Principal Realtors It's A Cinch (rope store) Cincinnati Grocery Provincial Apartments Carpet Cleaners of Distinction Invincible Law Office Ye Olde Incense Shoppe Fragrances, Charms & Incantations Springfield Incineration Facility The Income Builders (financial advisors) Inchworm Babysitters Incomparable Cleaners Incalculable Wealth Advisors "Inconceivable!" Assassins of Sicily (Wallace Shawn, Proprietor) And "LLC" has a similar, but smaller problem: Hillcrest Manor (Texas) Hellcat Firefighters Ecclesiastical Skullcaps of New York You can exclude many of those names (if desired) by adding a leading space before INC and LLC. (A period after INC would be good, but I don't know how "clean" your data is.)3Views1like0CommentsRe: Excel cell calculation
Excel evaluates mathematical expressions according to the PEMDAS rule, which you may have heard of: (first) evaluate what is inside Parentheses; next evaluate Exponentiation; next evaluate Multiplication and Division (left-to-right); next evaluate Addition and Subtraction (also left-to-right). But Excel has a few more operators, so see this Microsoft documentation, specifically, the Operator Precedence section.38Views2likes0CommentsRe: Excel Formula Help!!
See the attached workbook (assuming the forum software attaches it; lately, it has increasingly failed) for my ideas. Oh, and in the future, please identify which version of Excel you are/will be using (Excel 365, Excel 2019, etc.) on which platform (Windows, Mac, etc.). Edit: Yes, the attach failed; trying again. Edit #2: That failed also. The third time's the charm? Edit #3: Nope. Here's the link to a shared copy on One Drive: 2025-11-14 PLUM budget with overspending.xlsx51Views0likes0CommentsRe: 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.51Views0likes0CommentsRe: 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.)22Views0likes0CommentsRe: 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.xlsx157Views0likes0CommentsRe: 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...43Views0likes0Comments
Recent Blog Articles
No content to show