excel fill series restart from 1 after new value - excel

I have the following in one column, it keeps going down with random letters but always end with 1.
a1
a1
b1
b1
b1
b1
b1
c1
c1
c1
how can i make it fill series but start again from one when ever a new letter.
It should look like this:
a1
a2
b1
b2
b3
b4
b5
c1
c2
c3

You can genereate a new series in the column beside it. Lets assume your data starts in A1. In put 1 in B1 and in B2 place the following:
=IF(left(A1,len(A1)-1)=left(A2,len(A2)-1),B1+1,1)
Copy B2 down.
When you are done, you can copy your information from column B and paste is a values if you do not want the numbers changing again.

Related

Excel - Condition of my IF Statement not returning the correct result

Can someone understand why my IF Statement isn't returning the desired result? The logic makes sense to me but obviously it is incorrect.
What I'm trying to do is make A1 = B1 if both C1 and D1 are blank. This condition of my IF Statement isn't working, it returns a 0. Does anyone know why?
What I think the logic of my IF Statement is AND what I'm trying to achieve:
IF D1 is blank, make the content of A1 = C1. IF C1 is blank, make the content of A1 = B1. Otherwise make A1 = D1.
=IF(ISBLANK(D1),C1,IF(ISBLANK(C1),B1,D1))
So check C1 & D1 and set A1 = B1, enter this in cell A1:
=if(and(C1="",D1=""),B1,D1)
This will set cell A1 equal to B1 if C1 & D1 are blank, if either C1 or D1 are not blank then A1 will be equal to D1.
This is based on your middle paragraph:
What I'm trying to do is make A1 = B1 if both C1 and D1 are blank.
What you have in your final paragraph is different:
IF D1 is blank, make the content of A1 = C1. IF C1 is blank, make the content of A1 = B1. Otherwise make A1 = D1.
As you don't test C1 and D1 together.
Edit based on your comment:
=IF(AND(ISBLANK(C1),ISBLANK(D1)),B1,if(isblank(D1),C1,D1))
Which does if both C1&D1 are blank then B1, if D1 is blank then C1 if not B1.

How to convert particular columns into rows?

I want to convert particular columns into rows. How can I do that? For example, I want to shift C2 to D1 and C3 to E1 in sheet 1. Below is the link for the same sheet:
https://drive.google.com/open?id=1GifSZqk9UXbne1CORGWEBTjm_ns_U9dI
In cell D1 put formula: =C2
In cell E1 put formula: =C3
Assuming you need this to do the same in D4 and E4 select range D1:E3 and drag down.

Split one column by rows to multiple columns in Excel

I am working in Excel 2013, and I have data like the following:
A1
A2
A3
B1
B2
B3
(The As go to A13, Bs go to B13, Cs go to C13, and so on until you get to row 2495.)
How do I divide this long column where the 14th row moves to the next column? See below:
A1 B1 C1 ...and so on
A2 B2 C2
A3 B3 C3
...
A13 B13 C13
B1: =INDEX($A:$A,(COLUMNS($A:A)-1)*13+ROWS($1:1))
Fill right to AA1
Select B1:AA1 and fill down to row 13
The above assumes you are going A-Z. But you must have other characters also in order to get to 2495 rows. Your real data may require some tweaks from what I have presented -- either filling down further; or filling further to the right, or using a different constant then 13
If you want to parse the data into three separate columns then in B1 enter:
=A1
In C1 enter:
=A14
In D1 enter:
=A27
Then copy these three cells downwards:

copying the data from formulated column in Excell?

Hi I have three columns in MS Excell. The columns are A1,B1,C1. C1 is calculated automatically based on formula. The formula defined for C1 is(=A1+B1). I mean C1 is the sum of A1 and B1. Now the problem is I wanted to copy the value of C1 to A1 and want to make the B1 column filled with 0.
The moment i try to copy C1 and paste it into A1 the A1 is displaying as "#href" something like this. so how do i copy the value of C1(without Formula) and then paste it to A1?
When you copy from C1 in A1 Excel is trying to insert in A1 the same formula contained in C1 with your relative addresses adapted to the new position, so the new formula in A1 should sum the two cells at the left of A1, but there are not cells at the left of A1, so the #href error is telling you that.
To do what you want you should paste it like "value". You find that option in the Paste command

Cell address defined by the contents of other cells

How do you define variable cell address in Excel. For example consider the case where the content of cell A1 is 5, cell A2 is 2, cell A3 is 10 and cell A4 is 1. How do I enter a general formula to SUM the content of the cells A7 (A1+A2) through A9 (A3-A4)? I would then like to drag the formula to columns B through CJ,... and repeat similar calculations noting that values of B1 through CJ4 are different than A1 through A4. I appreciate any suggestions.
=SUM(INDEX(A:A,A1+A2,1):INDEX(A:A,A3-A4))

Resources