Need Formula that only show that only the latest positive results and if negative shows zero in latest wk

Leicester City Fox

Board Regular
Joined
Oct 7, 2016
Messages
91
Office Version
  1. 2019
Platform
  1. Windows
Hi everybody I have a variation on my lasts question posted<o:p></o:p>
I need a excel formula that will only select the first batchof positive numbers from only latest week and in this example that’s Week 7 (working backward) and give meresults in highlighted in green (result column)<o:p></o:p>
In this example if there a Zero in the latest column it isto record zero and if there a positive number it only start count from there. <o:p></o:p>
As the example shown below:


[TABLE="width: 432"]
<colgroup><col width="64" style="width: 48pt;" span="9"> <tbody>[TR]
[TD="width: 64, bgcolor: transparent, align: left"]<v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"> <v:f eqn="sum @0 1 0"> <v:f eqn="sum 0 0 @1"> <v:f eqn="prod @2 1 2"> <v:f eqn="prod @3 21600 pixelWidth"> <v:f eqn="prod @3 21600 pixelHeight"> <v:f eqn="sum @0 0 1"> <v:f eqn="prod @6 1 2"> <v:f eqn="prod @7 21600 pixelWidth"> <v:f eqn="sum @8 21600 0"> <v:f eqn="prod @7 21600 pixelHeight"> <v:f eqn="sum @10 21600 0"> </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas> <v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"> <o:lock aspectratio="t" v:ext="edit"> </o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_2" style="width: 432.75pt; height: 90.75pt; margin-top: 0px; margin-left: 0px; visibility: visible; position: absolute; z-index: 1;" type="#_x0000_t75" o:spid="_x0000_s3075" o:gfxdata="UEsDBBQABgAIAAAAIQDcxPXpFQEAAFICAAATAAAAW0NvbnRlbnRfVHlwZXNdLnhtbKSSy07DMBBF
90j8g+UtSpyyQAgl6YLHEliUDxjsSWIRP2S7Jf17Jmki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ata ObjectType="Pict"> <x:sizewithcells> <x:cf>Bitmap</x:cf> <x:autopict> </x:autopict></x:sizewithcells></x:clientdata> </v:imagedata></v:shape>

<tbody>
[TD="class: xl72, width: 64, bgcolor: transparent"]Proivder[/TD]

</tbody>
[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week1[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week2[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week3[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week4[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week5[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week6[/TD]
[TD="class: xl72, width: 64, bgcolor: transparent"]Week7[/TD]
[TD="class: xl73, width: 64, bgcolor: transparent"]Result[/TD]
[/TR]
[TR]
[TD="class: xl73, bgcolor: transparent"]A[/TD]
[TD="class: xl73, bgcolor: transparent"]1[/TD]
[TD="class: xl73, bgcolor: transparent"]2[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]1[/TD]
[TD="class: xl73, bgcolor: transparent"]2[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl75, bgcolor: transparent"]0[/TD]
[/TR]
[TR]
[TD="class: xl73, bgcolor: transparent"]B [/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl75, bgcolor: transparent"]4[/TD]
[/TR]
[TR]
[TD="class: xl73, bgcolor: transparent"]C[/TD]
[TD="class: xl73, bgcolor: transparent"]1[/TD]
[TD="class: xl73, bgcolor: transparent"]3[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl75, bgcolor: transparent"]1[/TD]
[/TR]
[TR]
[TD="class: xl73, bgcolor: transparent"]D[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]3[/TD]
[TD="class: xl73, bgcolor: transparent"]2[/TD]
[TD="class: xl74, bgcolor: transparent"]1[/TD]
[TD="class: xl75, bgcolor: transparent"]6[/TD]
[/TR]
[TR]
[TD="class: xl73, bgcolor: transparent"]E[/TD]
[TD="class: xl73, bgcolor: transparent"]1[/TD]
[TD="class: xl73, bgcolor: transparent"]1[/TD]
[TD="class: xl73, bgcolor: transparent"]2[/TD]
[TD="class: xl73, bgcolor: transparent"]3[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl73, bgcolor: transparent"]2[/TD]
[TD="class: xl73, bgcolor: transparent"]0[/TD]
[TD="class: xl75, bgcolor: transparent"]0[/TD]
[/TR]
</tbody>[/TABLE]
<v:shapetype id="_x0000_t75" stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"> <v:f eqn="sum @0 1 0"> <v:f eqn="sum 0 0 @1"> <v:f eqn="prod @2 1 2"> <v:f eqn="prod @3 21600 pixelWidth"> <v:f eqn="prod @3 21600 pixelHeight"> <v:f eqn="sum @0 0 1"> <v:f eqn="prod @6 1 2"> <v:f eqn="prod @7 21600 pixelWidth"> <v:f eqn="sum @8 21600 0"> <v:f eqn="prod @7 21600 pixelHeight"> <v:f eqn="sum @10 21600 0"> </v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas> <v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"> <o:lock aspectratio="t" v:ext="edit"></o:lock></v:path></v:stroke></v:shapetype><v:shape id="Picture_x0020_1" style="width: 432.75pt; height: 90.75pt; visibility: visible; mso-wrap-style: square;" type="#_x0000_t75" o:spid="_x0000_i1025"> <v:imagedata o:title="" src="file:///C:\Users\hayeg001\AppData\Local\Temp\msohtmlclip1\01\clip_image001.emz"></v:imagedata></v:shape><o:p></o:p>
I only want excel togive the first batch of positive grouped numbers in latest week only (week7) whichare highlighted in red and I need the formula to work out and give the resultsfigures added up shown green.<o:p></o:p>
I am great for any help in this area.<o:p></o:p>
Many thanks<o:p></o:p>
Leicester City Fox J<o:p></o:p>
<o:p> </o:p>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hello, there may be an easier way or more logical way, but without too much thought try this:

=IF(H2=0,0,SUM(INDEX(B2:H2,,MATCH(LOOKUP(0.5,B2:H2,$B$1:$H$1),$B$1:$H$1,0)+1):H2))
 
Upvote 0
Thanks, but maybe no so fast, I see it works fine for your sample data, but if I changes things up a bit, it will not produce the correct results. Let me take another look.
 
Upvote 0
This should be a bit more robust and I think should handle all of your situations:

=IF(H2=0,0,IFERROR(SUM(INDEX(B2:H2,,MATCH(LOOKUP(2,1/(B2:G2=0),$B$1:$G$1),$B$1:$H$1,0)+1):H2),SUM(B2:H2)))

The previous formula would fail if there where no zeros (0), or if there were several blocks for numbers separated by zeros.
 
Upvote 0
Hi Joyner

You were right I may have shot the gun early.

The amendment works a lot better :)

Many Thanks

The Leicester City Fox :)
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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