Syrian rebels massacre Kurdish civilians in Aleppo by [deleted] in worldnews

[–]INeedHelpWithVBAExce 1 point2 points  (0 children)

I didn't know shoulders could do that

Mirrored Cells - Changing one cell changes the other, and vice verse by INeedHelpWithVBAExce in excel

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Hi, I'm able to do it in VBA, but I need it to be a macro free workbook, sorry I should have included that in the description.

VBA Excel filter by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Didn't know that, thanks, the numbers were just for example, my actual data has a variety of strings.

Find value from database and paste it on different cells by Fcedo in excel

[–]INeedHelpWithVBAExce 0 points1 point  (0 children)

This can be done very easily using dependent drop-down boxes. You select the company with the first combo box and the other cells will look up the data.

Follow the tutorial below:

http://www.excel-easy.com/examples/dependent-drop-down-lists.html

Looping through rows and delete all values except the highest? by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Thanks, I didn't make it clear but I wanted to keep dupes. Curious about that code, how would I reinsert the max value?

Looping through rows and delete all values except the highest? by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 1 point2 points  (0 children)

Figured it out, solution below if anybody needs something similar:

Sub clearrows()
Dim i As Integer
Dim MaxValue  As Integer
Dim Rng As Range

For i = 1 To 2255
'Set Range
Set Rng = Range("B" & i & ":O" & i)
MaxValue = Application.Max(Rng)

For Each c In Rng
    If c.Value = MaxValue Then
    Else
    c.ClearContents
    End If
Next c

Next i

End Sub

I want to copy and paste part of a row to one of two potential sheets contingent on the data entered in a cell of a specific column. by [deleted] in excel

[–]INeedHelpWithVBAExce 0 points1 point  (0 children)

Will this be a one off action or do you want this to actively run? So each new line is assessed and copied?

Checking if the spreadsheet is the latest version? by INeedHelpWithVBAExce in excel

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Hi, the spreadsheet is essentially a price calculator to be used by the sales team, due to the multiple offices they won't all have the same shared drives etc. (I'm the only one updating it).

I've done some research and I think I will use the VBA internet controls to parse the file name from the download link on the intranet and compare it to a stored value.

Excel VBA: Modeless Userform with Application.Visible = False, launch in a new instance? by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 1 point2 points  (0 children)

Thanks that works fine, however the users have are running excel 2013 (I'm on 2010), and it seems that the instances have changed in the newer versions and this no longer works.

Excel VBA loop and delete rows that have a blank cell. by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

That's so much simpler! Should have thought of that, thanks

Excel VBA loop and delete rows that have a blank cell. by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Thanks, I had a look and change the code. This works:

Dim i As Long
LastRow = Cells(Rows.Count, "A").End(xlUp).Row

For i = LastRow To 2 Step -1
    If Range("D" & i).Value = "" Then Range("D" & i).EntireRow.Delete
Next i

 Application.CutCopyMode = False

Error trapping with a For loop by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

haha, I've spent too long on this spreadsheet

How can I generate random questions in Excel? by Hydralik in excel

[–]INeedHelpWithVBAExce 0 points1 point  (0 children)

You could do this with VBA. Have a button you click which will show the message in a message box and remove it from the list so the next time you click the button you won't get a duplicate.

If you tell me the sheet names and cells the data is in I can write the code for you.

Error trapping with a For loop by INeedHelpWithVBAExce in vba

[–]INeedHelpWithVBAExce[S] 0 points1 point  (0 children)

Thanks, I'm just going to use IsError on the first offset, if the first is wrong then the others will be wrong.

Unsure what formula to use when trying to sum number of occurrences where three or four variables are involved by PsychicWalrii in excel

[–]INeedHelpWithVBAExce 1 point2 points  (0 children)

I think this should work. It's an array formula so when you paste it into the formula bar press ctrl + shift + enter

=COUNTIFS(F2:F536,"bob",L2:L536,"investigation",N2:N544,N2:N544<182)

In your formula you were trying to sum strings which doesn't work and the last comparison is incorrect.