Exporting data from old table to new table

Status
Not open for further replies.

kirkley08

New Member
Joined
Mar 29, 2023
Messages
20
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
Hi everyone, good day!

I'm trying to convert/export the data from my "Database" to the new excel table (different table format).

From this:
This.xlsx
ABCEFGHIJKLMN
1
2Reward and Fine List
3NoWeekDayStaffR/FArticleDesc.AmountConsecutive 3AmountConsecutive 5Amount
41W1404.01JohnR12.1.1Good Attitude100    
52W1404.01LucyR12.1.1Good Attitude100    
63W1404.01KobeF12.3.2Late100    
74W1404.01LawrenceR12.1.1Good Attitude100    
85W1404.01KobeR12.1.1Good Attitude100    
96W1404.01KobeR22.1.1Good Attitude100    
107W1404.01LawrenceR22.1.1Good Attitude100    
118W1504.03KobeR32.1.1Good Attitude1001600  
129W1504.03LawrenceR32.1.1Good Attitude1001600  
1310W1504.03BabyF12.3.2Late100    
1411W1504.03JohnF12.3.2Late100    
1512W1504.03KobeR42.1.1Good Attitude100    
1613W1504.03JohnR12.1.1Good Attitude100    
1714W1504.04BabyR12.1.1Good Attitude100    
1815W1504.04KobeR52.1.1Good Attitude100  11000
Database
Cell Formulas
RangeFormula
K4:K18K4=IFERROR(IF(AND(MOD(G4,3)=0,G4<>0),INT(G4/3),""),"")
L4:L18L4=IF(COUNTBLANK(K4)=1,"",600)
M4:M18M4=IFERROR(IF(AND(MOD(G4,5)=0,G4<>0),INT(G4/5),""),"")
N4:N18N4=IF(COUNTBLANK(M4)=1,"",1000)
A4:A18A4=IF(COUNTA(E4)=1,COUNTA($E$3:E3),"")
G4:G18G4=IF(COUNTA(E4)=0,"",IF(COUNTIFS($D$2:D4,D4)=1,1,IF(D4=D3,G3+1,IF(AND(E4=E3,F4<>F3),1,IF(AND(E4<>E3,MAX(IF($D$2:D3=D4,$A$2:A3))>=MAX(IF($D$2:D3=(E4&VLOOKUP(F4,$P$1:$Q$2,2,)),$A$2:A3))),VLOOKUP(MAX(IF($D$2:D3=D4,$A$2:A3)),$A$2:G3,7,)+1,1)))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
_FilterDatabase=Database!$A$3:$N$103G4:G18


to this new table format:
This.xlsx
ABCDEFGHIJ
1
2Reward and Fine List
3NoWDStaff.DescriptionFineReward
4
532W1404.01R1John100
62.1.1
7Good Attitude
832W1404.01R1Lucy100
92.1.1
10Good Attitude
11
12
13
New Table



Other than using "lookup" formula, is there any other way to convert/export it faster? if the records are 500s or 1000s, it will be time consuming to add the boxes in new table and applying the lookup formula.

Thanks!
 
and apparently Borders do not copy with the xl2bb add in.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Okay, this has the second part of that concatenated value in the next cell. If that isn't what your managment needs then you need to insert an IF to concatenate. Maybe you can see how I built the INDEX/SWITCH formula to figure out how to contatenate that in there (would append an "& ... to the end of the entire formula.
wow, the formula you made is new to me, it takes time to understand but I understand how it works now.

it's not really the answer I'm looking for (since the table format need to be that way), I figured it would be impossible since there are merged cells. But thank you Awoohaw for answering me on this matter.
I really appreciate it! I'm learning something new!
 
Upvote 0
wow, the formula you made is new to me, it takes time to understand but I understand how it works now.

it's not really the answer I'm looking for (since the table format need to be that way), I figured it would be impossible since there are merged cells. But thank you Awoohaw for answering me on this matter.
I really appreciate it! I'm learning something new!
then i'd suggest using the formula above and then record a macro formatting the merged cells. Then putting the macro in a loop for the number of every 3 line records you have.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,876
Messages
6,181,522
Members
453,050
Latest member
Obil

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