Problem with alternate rows

phil133

Active Member
Joined
May 5, 2015
Messages
257
Office Version
  1. 365
Platform
  1. Windows
Hi. I'm trying to make a formula that has the following results


AB
55
125
712
9312
567
207

<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.
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))
 
Upvote 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,"+","")))
 
Upvote 0
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,"+","")),"")
 
Upvote 0
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,"+","")),"")
 
Upvote 0

Forum statistics

Threads
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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top