Display the number of week when the value goes below 0

venrous

New Member
Joined
Oct 21, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hello!

I am trying to make my work easier but cannot find the right formula to meet my criteria.
I would like to extract the number of week number when the value from row 2 goes below 0 and put it in cell E2.

In the example down below it is going to be 2022_w50 with -48 pieces. How can I put this demand into an excel formula?


test_formulki.xlsx
BCDEFGHIJKLMNOPQRSTU
1SKUNAMESUPPLIERStockout - when?2022_w422022_w432022_w442022_w452022_w462022_w472022_w482022_w492022_w502022_w512022_w522023_w012023_w022023_w032023_w042023_w05
2Item numberItem ASupplier1 1931 11399565253441524398-48-193-330-417-505-593-680-781
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F2:U2Cell Value<0textNO
F2:U2Expression=F2<#REF!textNO
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi & welcome to MrExcel.
How about
Excel Formula:
=TAKE(FILTER($F$1:$U$1,F2:U2<0),,1)
 
Upvote 0
Solution
This formula works like a charm, however, it spills all the weeks with minus values. How can I limit it to just receiving the first week with a negative value?
 
Upvote 0
It does just return the 1st week
Fluff.xlsm
ABCDEFGHIJKLMNOPQRSTU
1SKUNAMESUPPLIERStockout - when?2022_w422022_w432022_w442022_w452022_w462022_w472022_w482022_w492022_w502022_w512022_w522023_w012023_w022023_w032023_w042023_w05
2Item numberItem ASupplier2022_w5011931113995.36129652.36129533.594624414.82796242.8279697.634409-47.5591398-192.752688-329.72043-417.333333-504.946237-592.55914-680.17204-781.27573
Data
Cell Formulas
RangeFormula
E2E2=TAKE(FILTER($F$1:$U$1,F2:U2<0),,1)
 
Upvote 0

Forum statistics

Threads
1,214,661
Messages
6,120,790
Members
448,994
Latest member
rohitsomani

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