obtain last value of sample according to two conditions

AR2024

New Member
Joined
Mar 19, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi! How can I obtain the value of the next sample (AU) according to unit and batch. eg., the when AO is 50, AU should be 89, and so on. But it needs to be in accordance the unit and batch. When the unit and batch change it should assume the next different value of AO (sorry if it's not clear). eg., when unit changes, in AU15 should be 138.

1711127118609.png
 

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
my thought could be a number of IF statements in column AU if(B15="E1", 89, if(b15="E2",138,if(B15="F1",204,"")) if any of the batch change it will look through the formula and return the value.
 
Upvote 0
my thought could be a number of IF statements in column AU if(B15="E1", 89, if(b15="E2",138,if(B15="F1",204,"")) if any of the batch change it will look through the formula and return the value.
It will not work because I have more rows with different numbers
 
Upvote 0

Forum statistics

Threads
1,215,220
Messages
6,123,695
Members
449,117
Latest member
Aaagu

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