Need help with formula!

jyroxxor

New Member
Joined
Feb 26, 2018
Messages
11
Hi all,

I have existing data on the left. I need the outcome shows on right? Not sure how to derive it. Can you guys pls help me out? Thanks!

ABCDEFABCDE
1DateGLDescriptionSouthAsiaNorthAsiaEurope1LocationSouthAsia
2Jan181111Sales2000300040002
3Jan181112Exp100015002000to3GLDescriptionJan18Feb18
4Jan181113Net Sales10001500200041111Sales20003000
5Feb181111Sales30004000500051112Exp10001500
6Feb181112Exp15002000350061113Net Sales10001500
7Feb181113Net Sales150020001500

<colgroup><col><col span="2"><col><col span="3"><col><col><col><col><col><col><col span="4"></colgroup><tbody>
</tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Book1
ABCDEFKLMN
1DateGLDescriptionSouthAsiaNorthAsiaEuropeLocationSouthAsia
2Jan181111Sales200030004000
3Jan181112Exp100015002000GLDescriptionJan18Feb18
4Jan181113Net Sales1000150020001111Sales20003000
5Feb181111Sales3000400050001112Exp10001500
6Feb181112Exp1500200035001113Net Sales10001500
7Feb181113Net Sales150020001500
Sheet1


In K4 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($B$2:$B$7,SMALL(IF(FREQUENCY(IF(ISNUMBER($B$2:$B$7),MATCH($B$2:$B$7,$B$2:$B$7,0)),ROW($A$2:$F$7)-ROW(INDEX($A$2:$F$7,1,1))+1),ROW($A$2:$F$7)-ROW(INDEX($A$2:$F$7,1,1))+1),ROWS($K$4:K4))),"")

In L4 just enter and copy down:

=IF($K4="","",VLOOKUP($K4,$B$2:$C$7,2,0))

In M4 control+shift+enter, not just enter, copy across to N4, and down:

=IF($K4="","",INDEX($A$2:$F$7,SMALL(IF($A$2:$A$7=M$3,ROW($A$2:$F$7)-ROW(INDEX($A$2:$F$7,1,1))+1),ROWS(M$4:M4)),MATCH($L$1,$A$1:$F$1,0)))
 
Upvote 0
Thanks Aladin, but dont quite get the formula. However, can you help me solve the following, similar to above but much more complicated :(
 
Upvote 0
Excel 2013/2016
ABCDEFGHIJKLM
1Raw DataReport Wanted
2
3DateGLDescriptionSouthAsiaNorthAsiaEuropeSouthAsiaJan18Feb18Mar18
4Jan181111Sales200030004000Sales200030003500
5Jan181112S&D80015002200GL1112 + GL1113Total Exp100012501400
6Jan181113G&A200300500Net Profit100017502100
7Jan181114Net Profit100012001300
8Feb181111Sales300040005000
9Feb181112S&D100023002500
10Feb181113G&A250500800
11Feb181114Net Profit175012001700
12Mar181111Sales350045005500
13Mar181112S&D120015001800
14Mar181113G&A200300300
15Mar181114Net Profit210027003400
16

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

Worksheet Formulas
CellFormula
K6=K4-K5
L6=L4-L5
M6=M4-M5
D7=D4-D5-D6
E7=E4-E5-E6
F7=F4-F5-F6
D11=D8-D9-D10
E11=E8-E9-E10
F11=F8-F9-F10
D15=D12-D13-D14
E15=E12-E13-E14
F15=F12-F13-F14

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

<tbody>
</tbody>



May I know what is the formula in K4 and K5?
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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