ranges

tricone

New Member
Joined
Jun 28, 2011
Messages
11
Hi all,
assuming the colums are A,B,C respectively:
I am trying to gain the output in column C here based on column A and something like: =concatenate("$B$",startvalue,":$B$",endvalue)
so that I can use the indirect command to get a data validation that would call just 1 value for rows 1,6,7 and would call cells b2-b5 for rows 2-5.

<table border=1>
<tr>
<td>1</td>
<td>red</td>
<td>$B$1:$B$1</td>
</tr>
<tr>
<td>2</td>
<td>green</td>
<td>$B$2:$B$5</td>
</tr>
<tr>
<td>2</td>
<td>blue</td>
<td>$B$2:$B$5</td>
</tr>
<tr>
<td>2</td>
<td>yellow</td>
<td>$B$2:$B$5</td>
</tr>
<tr>
<td>2</td>
<td>black</td>
<td>$B$2:$B$5</td>
</tr>
<tr>
<td>3</td>
<td>purple</td>
<td>$B$6:$B$6</td>
</tr>
<tr>
<td>4</td>
<td>white</td>
<td>$B$7:$B$7</td>
</tr>
</table>

Ive been messing around with reference columns like:
=IF(OR(A1=A2,A2=A3),1,0)
=IF(A2=A1+1,row(B2),row(B1))

but cant quite get this to work out. any ideas?
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
nvm, got it using:

=IF(OR(L2=L3,L2=L1),J1+1,0)
start value:
=IF(J2>=1,I2-J1,I2)

message me if you want more details
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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