Formula to show actual state of the contract

Thediik

New Member
Joined
Jul 24, 2023
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I have a formula question about a excel. In my new sheet i plan to track my spare part contracts.

In columns "N" i want to express the stadium in which the project is, as you could see in attached photo.

Instead of writing the state manually i want formula to do it for me. I looked up for this topic here Formula to find the value of the closest non-blank cell to the left

but hat didnt help.

Is there a way how i can write this formula?

Thank you
Thediik
 

Attachments

  • Výstřižek.PNG
    Výstřižek.PNG
    65.5 KB · Views: 15

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Is there a way how i can write this formula?
In cell N2 Try and revert -

Excel Formula:
=IFS($K2<>"","Expedition",$J2<>"","Manufacture",$I2<>"","Purchase",True,"")

OR

To make it more dynamic

Excel Formula:
=IFS($K2<>"",$K$1,$J2<>"",$J$1,$I2<>"",$I$1,True,"")
 
Upvote 0
There is nearly always a way.

Try this in N2 and copy it down.

=OFFSET($A$1,0,MATCH(LOOKUP(2,1/($A2:$M2<>""),$A2:$M2),$A2:$M2,0)-1)
 
Upvote 0
Solution
I would avoid the volatile function OFFSET and try this anyway simpler formula.

BTW, I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.

davez.xlsm
ABCDEFGHIJKLMN
1DateState 1State 2State 3State 4State 5State 6State 7State 8State 9State 10State 11State 12Actual State
224/07/2023OrderedState 8
324/07/2023OrderedAssemblyState 9
424/07/2023 
524/07/2023abcState 1
Sheet1
Cell Formulas
RangeFormula
N2:N5N2=IFNA(LOOKUP("zzz",B2:M2,B$1:M$1),"")
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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