Transpose Formula when Certain Criteria are met

Gadgetgav

New Member
Joined
Aug 26, 2009
Messages
37
Hi All,

Apologies if this has been asked before but I have searched and only found similar requests, nothing solving my exact issue.

I have some weekly KPI data which gets collated each month into charts. The data is entered each week and totaled using sum formulas onto a sheet. I have a chart on another sheet that I would like to transpose this data onto (the data currently has the months as column headers but the chart needs them to be as rows). My issue is that I only want to show last month and earlier and hide the data entered so far for this month.

Example:

Original data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Jan[/TD]
[TD]Feb[/TD]
[TD]Mar[/TD]
[TD]Apr[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]150[/TD]
[TD]125[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]

How I want to see the chart data:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Jan[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]Mar[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]Apr[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

What I would like to do is have a transpose formula to enter the data onto the chart but only if the month is lower than today's month.

I hope this makes sense.

Thanks in advance,
Gav
 

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.
Hi,

say your data in located in range A1:D2

in cell A5, you could have : =OFFSET($A$1,0,ROW()-5)

and in cell B5, you could have : =IF(MONTH("1"&A5)>=MONTH(TODAY()),"",OFFSET($A$1,1,MATCH(A5,$1:$1,0)-1))

Hope this will help
 
Upvote 0
Solution
Hi,

say your data in located in range A1:D2

in cell A5, you could have : =OFFSET($A$1,0,ROW()-5)

and in cell B5, you could have : =IF(MONTH("1"&A5)>=MONTH(TODAY()),"",OFFSET($A$1,1,MATCH(A5,$1:$1,0)-1))

Hope this will help
Thanks for the help but unfortunately that won't work as the data is on a different sheet to the chart and is among other data so it's not as simple as just offsetting.
 
Upvote 0
Thanks for the help but unfortunately that won't work as the data is on a different sheet to the chart and is among other data so it's not as simple as just offsetting.

Do not know the complexity of your workbook ...

But Offset can easily operate across sheets ...
 
Upvote 0
This has actually helped a lot as it helped me realise I can just do a HLookup using the month headers. Thank you
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

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