Address Function to increase reference cell by 1

jaspncr

New Member
Joined
Jun 6, 2011
Messages
5
Hi, I'm working on a project and I need some help with the address function. A few notes for reference.

Sheet I'm working in is called 'AvB'
The sheet I'm drawing data from is in the same workbook and is called 1) 'BS'

Background: The sheet called BS stands for balance sheet. On that sheet the months increase by 1 every time you move 1 column to the right. On 'AvB' I need to move 5 columns to the right to increase the month by 1. For example

Sheet name of table below: BS
For example this table below is very similar to the sheet I'm drawing numbers from. In this example I want the numbers residing in B2:J4 on the sheet BS and I want them to show up in the sheet AvB in their prospective named cells.
JanFebMarAprMayJuneJulyAugSept
Revenue133453457
Expense112234123
Profit02122-1334

<tbody>
</tbody>


The problem is how AvB is constructed. Each month (Jan, Feb, etc) on this sheet requires 6 columns before the next month begins.

Sheet Name of Table Below: AvB
For example this table below is very similar to the sheet I'm pulling numbers into in terms of the column names and layout. My problem is that every time I get a new month (in this case let's assume it's Feb) I want to copy and paste columns B, C, D, E, F, & G to get the new Feb columns. I would like the column with Actual Feb'16 data to be populating from BS!C (Feb) however it's populating from BS!H (July). I'm pretty sure I can fix this by using the address function, but I just don't know how.
Actual
Jan'16

<colgroup><col></colgroup><tbody>
</tbody>
Budget
Jan'16

<colgroup><col></colgroup><tbody>
</tbody>
Variance $
Jan'16

<colgroup><col></colgroup><tbody>
</tbody>
Variance %
Jan'16

<colgroup><col></colgroup><tbody>
</tbody>
Notes

<colgroup><col></colgroup><tbody>
</tbody>
[Blank Cell]Actual
Feb'16
Budget
Feb'16
Variance $
Feb'16
Variance %
Feb'16
Notes[Blank Cell]
Revenue=BS!B2=BS!C2
Expense=BS!B3=BS!C3
Profit=BS!B4=BS!C4

<tbody>
</tbody>


Many many thanks in advance
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi, how about something like this to retrieve the values based on the text in the header (I'm assuming the Month and Year are on a row by themselves):


Excel 2013/2016
ABCDEFGHIJKLM
1ActualBudgetVariance $Variance %NotesActualBudgetVariance $Variance %Notes[Blank Cell]
2Jan'16Jan'16Jan'16Jan'16Feb'16Feb'16Feb'16Feb'16
3
4Revenue13
5Expense11
6Profit02
Sheet2
Cell Formulas
RangeFormula
B4=INDEX(BS!$B:$M,MATCH($A4,BS!$A:$A,0),MATCH(LEFT(B$2,3),BS!$B$1:$M$1,0))



Excel 2013/2016
ABCDEFGHIJKLM
1JanFebMarAprMayJuneJulyAugSepOctNovDec
2Revenue133453457
3Expense112234123
4Profit02122-1334
BS
 
Upvote 0
Hi FormR,

I tried the formula you listed but got a #N/A. I'm sure it's user error. I've posted two links to screenshots.

Screenshot 1 - AvB Sheet - Sheet where I'm using the formula to pull from the other sheet
https://photos.app.goo.gl/Ls8ufbVCnLQWvBKn1

Screenshot 2 - BS Sheet - Sheet where I'm pulling the data from
https://photos.app.goo.gl/OjnlTOoRHTHmhJql2

Not sure where I'm going wrong but I think these two images should provide all the information to identify my error?

Many Thanks in Advance
Jeff


Hi, how about something like this to retrieve the values based on the text in the header (I'm assuming the Month and Year are on a row by themselves):

Excel 2013/2016
ABCDEFGHIJKLM
1ActualBudgetVariance $Variance %NotesActualBudgetVariance $Variance %Notes[Blank Cell]
2Jan'16Jan'16Jan'16Jan'16Feb'16Feb'16Feb'16Feb'16
3
4Revenue13
5Expense11
6Profit02

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B4=INDEX(BS!$B:$M,MATCH($A4,BS!$A:$A,0),MATCH(LEFT(B$2,3),BS!$B$1:$M$1,0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



Excel 2013/2016
ABCDEFGHIJKLM
1JanFebMarAprMayJuneJulyAugSepOctNovDec
2Revenue133453457
3Expense112234123
4Profit02122-1334

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
BS
 
Upvote 0
Not sure where I'm going wrong but I think these two images should provide all the information to identify my error?

Hi Jeff - looks like the month labels in the BS sheet match the labels in the AVB sheet, i.e. they also include the year (which is different to the sample data in the 1st post).

Try removing the LEFT() function, i.e. using the layout post#2

=INDEX(BS!$B:$M,MATCH($A4,BS!$A:$A,0),MATCH(B$2,BS!$B$1:$M$1,0))
 
Upvote 0

Forum statistics

Threads
1,216,100
Messages
6,128,831
Members
449,471
Latest member
lachbee

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