Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent)
Hello,
I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent)
Select the first cell in the row. While hold down the shift key, touch
end,right-arrow,left arrow and then release the shift key. The pull-down: Edit Delete... Shift cells left -- Gary's Student "Evgeny" wrote: Hello, I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent
Thanks, Gary
But I have 756 rows and 150 columns. I cannot do it manually every time. The data is inputted from other sheets and I need the values to be organized in first 18 columns for a report. So, I need the values from rows to be shifted left, one after another, dynamically (I will just paste values in, let's say, column GY, and if this is the first value, it needs to be in column A, if it's 2nd value in row - it goes to column B) I appreciate your help, Evgeny "Gary''s Student" wrote: Select the first cell in the row. While hold down the shift key, touch end,right-arrow,left arrow and then release the shift key. The pull-down: Edit Delete... Shift cells left -- Gary's Student "Evgeny" wrote: Hello, I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent
You need a macro. Enter this:
Sub Macro1() For i = 1 To 10 Cells(i, 1).Select Range(Selection, Selection.End(xlToRight)).Select Selection.Resize(1, Selection.Columns.Count - 1).Select If Selection.Count < 255 Then Selection.Delete Shift:=xlToLeft End If Next End Sub As coded it works on the first 10 rows. You can modify the FOR loop to cover any rows you wish. -- Gary''s Student "Evgeny" wrote: Thanks, Gary But I have 756 rows and 150 columns. I cannot do it manually every time. The data is inputted from other sheets and I need the values to be organized in first 18 columns for a report. So, I need the values from rows to be shifted left, one after another, dynamically (I will just paste values in, let's say, column GY, and if this is the first value, it needs to be in column A, if it's 2nd value in row - it goes to column B) I appreciate your help, Evgeny "Gary''s Student" wrote: Select the first cell in the row. While hold down the shift key, touch end,right-arrow,left arrow and then release the shift key. The pull-down: Edit Delete... Shift cells left -- Gary's Student "Evgeny" wrote: Hello, I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent
Thanks a lot!
It works great! Evgeny "Gary''s Student" wrote: You need a macro. Enter this: Sub Macro1() For i = 1 To 10 Cells(i, 1).Select Range(Selection, Selection.End(xlToRight)).Select Selection.Resize(1, Selection.Columns.Count - 1).Select If Selection.Count < 255 Then Selection.Delete Shift:=xlToLeft End If Next End Sub As coded it works on the first 10 rows. You can modify the FOR loop to cover any rows you wish. -- Gary''s Student "Evgeny" wrote: Thanks, Gary But I have 756 rows and 150 columns. I cannot do it manually every time. The data is inputted from other sheets and I need the values to be organized in first 18 columns for a report. So, I need the values from rows to be shifted left, one after another, dynamically (I will just paste values in, let's say, column GY, and if this is the first value, it needs to be in column A, if it's 2nd value in row - it goes to column B) I appreciate your help, Evgeny "Gary''s Student" wrote: Select the first cell in the row. While hold down the shift key, touch end,right-arrow,left arrow and then release the shift key. The pull-down: Edit Delete... Shift cells left -- Gary's Student "Evgeny" wrote: Hello, I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Find first value in row + add following values (Please, Urgent
You are very welcome
-- Gary's Student "Evgeny" wrote: Thanks a lot! It works great! Evgeny "Gary''s Student" wrote: You need a macro. Enter this: Sub Macro1() For i = 1 To 10 Cells(i, 1).Select Range(Selection, Selection.End(xlToRight)).Select Selection.Resize(1, Selection.Columns.Count - 1).Select If Selection.Count < 255 Then Selection.Delete Shift:=xlToLeft End If Next End Sub As coded it works on the first 10 rows. You can modify the FOR loop to cover any rows you wish. -- Gary''s Student "Evgeny" wrote: Thanks, Gary But I have 756 rows and 150 columns. I cannot do it manually every time. The data is inputted from other sheets and I need the values to be organized in first 18 columns for a report. So, I need the values from rows to be shifted left, one after another, dynamically (I will just paste values in, let's say, column GY, and if this is the first value, it needs to be in column A, if it's 2nd value in row - it goes to column B) I appreciate your help, Evgeny "Gary''s Student" wrote: Select the first cell in the row. While hold down the shift key, touch end,right-arrow,left arrow and then release the shift key. The pull-down: Edit Delete... Shift cells left -- Gary's Student "Evgeny" wrote: Hello, I wonder if there is an easy way to find the first value in a row and put it in column 1, the second value in that row will go to column 2, etc. Example: A B C D E... K L M N O P Q R S T V etc 3 5 2 4 8 3 5 2 4 8 5 4 8 5 4 8 6 8 2 1 9 6 8 2 1 9 Thank you very much, Evgeny |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Function to find duplicate values, then delete | Excel Worksheet Functions | |||
Can you Find and Replace values with in a formula? | Excel Discussion (Misc queries) | |||
How do I find the two lowest values in a range? | Excel Worksheet Functions | |||
in excel, how do I find which values doesn't have a pair? | Excel Discussion (Misc queries) | |||
To find different values in Col B corresp. to repeated vaues in c | Excel Worksheet Functions |