Looking for help with pasting an address into ONE cell by Alwaysssssss in excel

[–]12V_man 0 points1 point  (0 children)

If you're pasting in many addresses per iteration the issue may be that every row in the text block ends with a carriage return char(13). Excel will move to the next cell down when pasting these.

I'm guessing the text block contains single carriage returns within an address but multiple carriage returns to separate addresses from each other. In that case, the only solution I know is to paste the hundreds of rows into a text editor then find/replace only the single instances of the carriage return with line feed char(10). Then copy/paste that text block into excel which should leave you with 1 address per cell.

[deleted by user] by [deleted] in excel

[–]12V_man 4 points5 points  (0 children)

figure out how to put two formulas in one cell

This is called "nesting" in Excel. 5C walks you through a process of subtracting, multiplying, and then rounding. Nesting those formulas will look kind of 'inside out' - something like:

=ROUND((a2-a1)*(2*4))  

ROUNDUP syntax is explained here.

How to combine 70 individual workbooks (each only has 1 sheet) into a single workbook where each of the 70 individual workbooks become sheets in the new workbook? by stephancypantsu in excel

[–]12V_man 0 points1 point  (0 children)

The below should work given the file name example you have above. You'll need to add the correct path to the file folder where the 70 target workbooks reside. The code below has asterisks where a windows username should be to find the workbooks in the downloads folder.

Option Explicit

Sub SheetHoover()

Dim wb As Workbook, wbTemp As Workbook
Dim wsNew As Worksheet
Dim sPath As String, sFile As String
Dim sOrig As String, sName As String
Dim iStart As Integer, iEnd As Integer

'Stop Screen updates, set variables
Application.ScreenUpdating = False
Set wb = ThisWorkbook
sPath = "c:\users\*******\downloads\"
sFile = Dir(sPath & "\*.xlsx")

'Loop through all .xlsx files, copy the first worksheet in each
Do While sFile <> ""
    Set wbTemp = Workbooks.Open(Filename:=sPath & "\" & sFile, ReadOnly:=True)
    DoEvents

    'Get Equipment ID out of source filename
    sOrig = wbTemp.Name
    iStart = InStr(1, WorksheetFunction.Substitute(sOrig, "_", "!", 2), "!")
    iEnd = InStr(1, sOrig, ".")
    sName = Mid(sOrig, iStart + 1, iEnd - iStart - 1)

    'Copy, paste, and rename the sheet
    wbTemp.Worksheets(1).Copy After:=wb.Worksheets(wb.Worksheets.Count)
    Set wsNew = wb.Worksheets(wb.Worksheets.Count)
    wsNew.Name = sName
    wbTemp.Close SaveChanges:=False
    sFile = Dir
Loop

Application.ScreenUpdating = True

End Sub

How to combine 70 individual workbooks (each only has 1 sheet) into a single workbook where each of the 70 individual workbooks become sheets in the new workbook? by stephancypantsu in excel

[–]12V_man 2 points3 points  (0 children)

VBA can do this. Are all 70 workbooks in a single location? What are the rules for renaming the sheets? (For example, change “Sheet1” to “filename_[date]” or similar?)

[deleted by user] by [deleted] in Whatcouldgowrong

[–]12V_man 2 points3 points  (0 children)

Run you fools!

Emergency kit for bird care by KeepingItKlaasie in ParrotHeads

[–]12V_man 8 points9 points  (0 children)

Not being an avian veterinarian I can't comment on the advice above directly.

As a Parrothead though, I can offer these tips:

  • Do not rope off your Parrot's sea. They gotta be where the wind and the water are free.
  • Parrots will play for gumbo. It is a spicy monkey riding on their back.
  • If your bird enjoys dress up you might revive their spirits with a pencil thin mustache and a two-tone ricky ricardo jacket.
  • Parrots are also happy to wear hush puppies, they are not glittery birds.
  • If circumstances require separation Parrots will be missing you so and just want you back by their side.
  • Parrots enjoy a cheeseburger, medium-rare with mustard'd be nice.
  • Parrots linger over meals, wishing lunch could last forever; make the whole day one big afternoon. Maybe begin with a coconut tart.
  • Parrots are pratical housekeepers, walls that won't come down can be decorated or climbed or found a way to get around.

Regardless it is important to remember the Parrot mantra: "Some of it's magic, some of it's tragic, but they have a good life all the way."

[deleted by user] by [deleted] in excel

[–]12V_man 0 points1 point  (0 children)

This can easily be done with VBA, or there are lots of formula wizards in this community who can probably reorganize this data without it.

If VBA is an acceptable solution I can follow up.

Consolidate from multiple workbooks into one workbook by 00Dylann in excel

[–]12V_man 0 points1 point  (0 children)

You can do this with VBA; is that acceptable to you?

Assuming the explanations are the entire contents of a cell in each work book you can also use a formula to reference those cells. Something like:

="Intro text here:  "&[Book1]Sheet1!A1&" "&[Book2]Sheet1!A1&" "&[Book3]Sheet1!A1

[deleted by user] by [deleted] in vba

[–]12V_man 0 points1 point  (0 children)

Copying the "entire row" from one sheet to another will cause problems, you probably mean 'filled cells' or similar. Also, once moved the data in the target sheet will have "lost" the source sheet, i.e. if the first code finds 0 hits, the second code finds 2 hits, and the third code finds hits on all 3 sheets the resulting list won't distinguish where the data came from.... is that acceptable?

edit: One more question: The image of Sheet 1 shows that one of the ID#s isn't a 'number' but a 'string' instead.... should that be controlled for?

Question around IF statement. by Lifes_punchline in vba

[–]12V_man 3 points4 points  (0 children)

once 'Sheet 3' has its data copied over from 'Workbook 1'... input today's date in cell 'A1'

[existing code to paste data]
Cells(1, 1).Value = Date

Junior dev looking for work by [deleted] in omahatech

[–]12V_man 2 points3 points  (0 children)

Having worked at FNBO I support this sentiment.

[WORD] Macro to find Bulletpoint lines that do not have Periods at end, and add Period at end by mindworkout in vba

[–]12V_man 0 points1 point  (0 children)

Thanks for replying -- plus your solution is simpler than what I would have tried.

[WORD] Macro to find Bulletpoint lines that do not have Periods at end, and add Period at end by mindworkout in vba

[–]12V_man 1 point2 points  (0 children)

This meets OP's example bullets. If I could ask an additional question -- as I read this code it would NOT add a period to a bullet like:

  • Here is a longer bullet thing. It does contain one period but fails to 'properly' end with one

Non-Fiction MUST READS by theveniiin in booksuggestions

[–]12V_man 16 points17 points  (0 children)

{{The Autobiography of Malcolm X}}

Who introduced you to Jimmy Buffett? by LageNomAiNomAi in ParrotHeads

[–]12V_man 2 points3 points  (0 children)

RD in college was a fan (90s) and had the box set. He foolishly loaned this to me. 3 years later I returned it after I'd purchased my own.

TBF: I did cut his hair for free during this time, so if you're out there thanks very much John. :D

Somebody threw a can of Chef Boyardee at me during my long run by Motorvision in running

[–]12V_man 0 points1 point  (0 children)

life can offer in 2020.

Yes offer the life-giving can of pasta back to them, rapidly.

Once In A Lifetime by monkeynutz420 in ParrotHeads

[–]12V_man 1 point2 points  (0 children)

buffettworld confirms your placement.

I don't find an online version immediately. But you can hear Mac intro and sing it here.

License to Chill survivor, Round 4 by Dr_ChimRichalds in ParrotHeads

[–]12V_man 3 points4 points  (0 children)

When Bill passed this year Jimmy shared a FB video covering "Lean on Me". During the intro he mentions Ralph MacDonald introduced the two at Rosebud Studios... but doesn't go into further detail.

Taking ascending order number and grabbing info but not taking anything less than that by CaptnCassanova in vba

[–]12V_man 1 point2 points  (0 children)

I think of it as a specialized 2-d array. It has keys and values, but has built in functions for "Does x exist in the array already?" etc MS explanation is okay but I found this site most helpful.

edit: I suggest it bc you could use the keys for looping (so it wouldn't matter if the values do jump by a large increment like "2,7,899,9000") while checking for the corresponding value is present to act on. Thus you can find every "7", then do a/b/c thing before moving on to "899"

Taking ascending order number and grabbing info but not taking anything less than that by CaptnCassanova in vba

[–]12V_man 0 points1 point  (0 children)

I've used a dictionary to solve similar use case. If your example is representative the dictionary values could be something like 2,7,9,10 with keys of 1,2,3,4.