# Problem with alternate rows

#### phil133

##### Active Member
Hi. I'm trying to make a formula that has the following results

 A B 5 5 12 5 7 12 93 12 56 7 20 7

<tbody>
</tbody>

B1 to be A1 but B2 also A1. B3 to be A2 but B4 also A2. B5 to be A3 but B6 also A3.

Thanks for any help!

Last edited:

### Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try :-
Code:
``=OFFSET(\$A\$1,ROWS(\$B\$1:\$B1)-INT(ROWS(\$B\$1:\$B1)/2)-1,)``

hth

Thanks! This works!

Just another option:

Excel 2012
AB
1AB
255
3125
4712
59312
6567
7207
893
993
1056
1156
1220
1320
Sheet1
Cell Formulas
RangeFormula
B2=INDEX(\$A\$2:\$A\$7,ROUNDUP(ROWS(\$B\$2:B2)/2,0))

And another

=INDIRECT("A"&ROUNDUP(ROW()/2,0))

Amazing! Thank you all. I have another small problem but it's not very important so I don't want to open a new thread. In this formula, N241 is blank (has a formula that results blank) but the result of this comes up as false instead of blank. I don't care too much but just out of curiosity!

Code:
``IF(N241<>"",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=1,"-",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=2,"+","")))``

Try

=IF(N241<>"",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=1,"-",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=2,"+","")),"")

You appear to missing the FALSE argument for the 1st IF() function:

Rich (BB code):
``=IF(N241<>"",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=1,"-",IF(IFERROR(INDEX(\$F\$4:\$F\$352,MATCH(\$N241,\$A\$4:\$A\$352,0)),"")=2,"+","")),"")``

Thanks again!

Replies
4
Views
258
Replies
14
Views
370
Replies
2
Views
93
Replies
2
Views
130
Replies
4
Views
709

1,203,203
Messages
6,054,130
Members
444,703
Latest member
pinkyar23

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back