Need help transposing/reorganizing data

MajesticAmy84

New Member
Joined
Jan 29, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello, I have this spreadsheet that is arranged like cells A1:H5, and I'm trying to put that information in a spreadsheet that is arranged like cells A7:D15. I tried transposing it, but it doesn't come out the way I want it to. I've also tried just doing this all the way down in the C column and dragging it down:
=C3
=E3
=G3
=C4
=E4
=G4
...but Excel can't seem to figure out the pattern. I've also played around with the OFFSET function, but I can't get that to work either. It still doesn't follow my pattern.

1611963019217.png

There must an easier way to do this than just moving all of it manually. I have a year's worth of data. I've never used macros or VBA before so I'd rather avoid that unless it's the only possible way.

Does anyone have a solution?
 

Attachments

  • 1611961664517.png
    1611961664517.png
    183.4 KB · Views: 2
  • 1611961733208.png
    1611961733208.png
    110.8 KB · Views: 2

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Welcome to the MrExcel board!

See if this would help.

21 01 30.xlsm
BCDEFGHIJKLM
1CheckCreditCash
2DateTrans$$$Trans$$$Trans$$$Trans$$$
31/02/20189$8.005$5.008$6.001/02/2018Check9$8.00
41/03/20181$4.009$7.006$3.00 Credit5$5.00
51/04/20189$5.008$6.006$2.00 Cash8$6.00
61/03/2018Check1$4.00
7 Credit9$7.00
8 Cash6$3.00
91/04/2018Check9$5.00
10 Credit8$6.00
11 Cash6$2.00
12    
13    
14    
Rearrange
Cell Formulas
RangeFormula
J3:J14J3=IF(K3="Check",INDEX(B$3:B$1000,COUNTIF(K$3:K3,"Check")),"")
K3:K14K3=IF(ROWS(K$3:K3)>COUNT(B$3:B$1000)*3,"",INDEX({"Cash","Check","Credit"},MOD(ROWS(K$3:K3),3)+1))
L3:L14L3=IF(K3="","",INDEX(C$3:H$1000,COUNTIF(K$3:K3,K3),MATCH(K3,C$1:H$1,0)))
M3:M14M3=IF(K3="","",INDEX(C$3:H$1000,COUNTIF(K$3:K3,K3),MATCH(K3,C$1:H$1,0)+1))
 
Upvote 0
Solution
Welcome to the MrExcel board!

See if this would help.

21 01 30.xlsm
BCDEFGHIJKLM
1CheckCreditCash
2DateTrans$$$Trans$$$Trans$$$Trans$$$
31/02/20189$8.005$5.008$6.001/02/2018Check9$8.00
41/03/20181$4.009$7.006$3.00 Credit5$5.00
51/04/20189$5.008$6.006$2.00 Cash8$6.00
61/03/2018Check1$4.00
7 Credit9$7.00
8 Cash6$3.00
91/04/2018Check9$5.00
10 Credit8$6.00
11 Cash6$2.00
12    
13    
14    
Rearrange
Cell Formulas
RangeFormula
J3:J14J3=IF(K3="Check",INDEX(B$3:B$1000,COUNTIF(K$3:K3,"Check")),"")
K3:K14K3=IF(ROWS(K$3:K3)>COUNT(B$3:B$1000)*3,"",INDEX({"Cash","Check","Credit"},MOD(ROWS(K$3:K3),3)+1))
L3:L14L3=IF(K3="","",INDEX(C$3:H$1000,COUNTIF(K$3:K3,K3),MATCH(K3,C$1:H$1,0)))
M3:M14M3=IF(K3="","",INDEX(C$3:H$1000,COUNTIF(K$3:K3,K3),MATCH(K3,C$1:H$1,0)+1))


Yes that seems to work! Thank you!
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,942
Messages
6,122,367
Members
449,080
Latest member
Armadillos

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