Excel formula to update values for specific columns only

vinwin06

New Member
Joined
Dec 9, 2009
Messages
30
Hello all,

I am looking for an excel formula which would pickup from whole data , here with attached data for your reference. Data available in columns like from Jan to Dec and output i dont want to show everything in one go so only selected months need to be shown in output summary. which formula should i write for it. Here with attaching the sample table. Thanks in advance.

[TABLE="width: 929"]
<colgroup><col><col span="13"></colgroup><tbody>[TR]
[TD]Input[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Business name[/TD]
[TD]Line item[/TD]
[TD]Jan 18[/TD]
[TD]Feb 18[/TD]
[TD]Mar 18[/TD]
[TD]Apr 18[/TD]
[TD]May 18[/TD]
[TD]Jun 18[/TD]
[TD]Jul 18[/TD]
[TD]Aug 18[/TD]
[TD]Sep 18[/TD]
[TD]Oct 18[/TD]
[TD]Nov 18[/TD]
[TD]Dec 18[/TD]
[/TR]
[TR]
[TD]Gas[/TD]
[TD]Sales[/TD]
[TD="align: right"]-1.542[/TD]
[TD="align: right"]3.65E-05[/TD]
[TD="align: right"]-3.7E-05[/TD]
[TD="align: right"]-0.46118[/TD]
[TD="align: right"]-0.00394[/TD]
[TD="align: right"]0.00058[/TD]
[TD="align: right"]-0.65081[/TD]
[TD="align: right"]0.000419[/TD]
[TD="align: right"]0.000405[/TD]
[TD="align: right"]-0.66324[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-0.0004[/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD]Sales[/TD]
[TD="align: right"]0.409249[/TD]
[TD="align: right"]0.330625[/TD]
[TD="align: right"]0.508109[/TD]
[TD="align: right"]0.328616[/TD]
[TD="align: right"]1.294699[/TD]
[TD="align: right"]0.34993[/TD]
[TD="align: right"]0.296669[/TD]
[TD="align: right"]0.3237[/TD]
[TD="align: right"]0.317785[/TD]
[TD="align: right"]0.317791[/TD]
[TD="align: right"]0.318828[/TD]
[TD="align: right"]0.868142[/TD]
[/TR]
[TR]
[TD]Gas[/TD]
[TD]Cost[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-2.2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-0.83482[/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD]Cost[/TD]
[TD="align: right"]-3.69099[/TD]
[TD="align: right"]2.417468[/TD]
[TD="align: right"]7.552902[/TD]
[TD="align: right"]20.91155[/TD]
[TD="align: right"]10.17526[/TD]
[TD="align: right"]-10.2645[/TD]
[TD="align: right"]-22.0394[/TD]
[TD="align: right"]39.16146[/TD]
[TD="align: right"]-119.139[/TD]
[TD="align: right"]-27.3145[/TD]
[TD="align: right"]63.04662[/TD]
[TD="align: right"]-9.97523[/TD]
[/TR]
[TR]
[TD]Gas[/TD]
[TD]NIBIAT[/TD]
[TD="align: right"]31.24384[/TD]
[TD="align: right"]-35.6563[/TD]
[TD="align: right"]-120.603[/TD]
[TD="align: right"]7.633065[/TD]
[TD="align: right"]-80.2893[/TD]
[TD="align: right"]-27.0659[/TD]
[TD="align: right"]16.93894[/TD]
[TD="align: right"]116.006[/TD]
[TD="align: right"]-157.01[/TD]
[TD="align: right"]354.2619[/TD]
[TD="align: right"]2.82761[/TD]
[TD="align: right"]-127.001[/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD]NIBIAT[/TD]
[TD="align: right"]38.00016[/TD]
[TD="align: right"]-38.142[/TD]
[TD="align: right"]-125.43[/TD]
[TD="align: right"]-8.75795[/TD]
[TD="align: right"]-92.5182[/TD]
[TD="align: right"]-6.83274[/TD]
[TD="align: right"]38.88822[/TD]
[TD="align: right"]79.18886[/TD]
[TD="align: right"]-59.4034[/TD]
[TD="align: right"]379.9576[/TD]
[TD="align: right"]-47.6821[/TD]
[TD="align: right"]-116.335[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 481"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD]Output[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Jan 18[/TD]
[TD]Feb 18[/TD]
[TD]Mar 18[/TD]
[TD="colspan: 3"]YTD[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="colspan: 3"]Month[/TD]
[TD]Actual[/TD]
[TD]LE[/TD]
[TD]Plan[/TD]
[/TR]
[TR]
[TD]Gas[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Vehicle[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You can play a little with a pivot table and check if the result is what you need.

ad569729a1c18165f521172fcf4febc1.jpg
 
Upvote 0
You could also try this formula, copied across and down.

Excel Workbook
ABCDEFGHIJKLMN
1Business nameLine itemJan-18Feb-18Mar-18Apr-18May-18Jun-18Jul-18Aug-18Sep-18Oct-18Nov-18Dec-18
2GasSales-1.5423.65E-05-3.70E-05-0.46118-0.003940.00058-0.650810.0004190.000405-0.663240-0.0004
3VehicleSales0.4092490.3306250.5081090.3286161.2946990.349930.2966690.32370.3177850.3177910.3188280.868142
4GasCost0000000-2.2000-0.83482
5VehicleCost-3.690992.4174687.55290220.9115510.17526-10.2645-22.039439.16146-119.139-27.314563.04662-9.97523
6GasNIBIAT31.24384-35.6563-120.6037.633065-80.2893-27.065916.93894116.006-157.01354.26192.82761-127.001
7VehicleNIBIAT38.00016-38.142-125.43-8.75795-92.5182-6.8327438.8882279.18886-59.4034379.9576-47.6821-116.335
8
9
10Jan-18Feb-18Mar-18
11Month
12Gas29.70184-35.6562635-120.603037
13Vehicle34.718419-35.393907-117.368989
Extract
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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