Find the previous variant value when the current row doesn't have a variant. In such cases, the previous variant should be used

Hi All,

So I have an Excel sheet which contains values, with each column representing an AM number. In each column, I need to find the positions of '0’s and '*'s and their corresponding variant values. If the variant is not present, I want to find the previous variant value when the current row doesn’t have a variant. In such cases, the previous variant should taken as current variant.

Need solution to find the previous variant.

Please find the attached excel for your reference

Function_G10000.xlsx (16.9 KB)

Thank you!

@Yoichi

Hi,

Can you also share expected result?

Regards,

Hi @Yoichi

Good Day!

I looking for Variant value

step1- will Go One Column Value after Other as you can see in table 001,005,010,…

For Example First value Is 001 in this column in this column we need to find the how may 0’s and *'s are present in That 001 Column

where above value we need to find variant so for 001 are 15 and 30

If the Variant is corresponded to same row we will consider directly if its not present we need to consider the nearest varient to the 0 or * value

so as output based on 0’s and *'s we need to find the variant numbers in that column(001)

For example Output

For 001 Column Variants are 15 & 30
For 005 Column Variants are 10, 15 & 40
For 010 Column Variants are 15
For O15 Column Variant are 30
For 020 Column Variants are 10

in this way i want variants for all column number

Sample File
VarientData.xlsx (15.1 KB)

@Yoichi
Thank you!

Could you please kindly help me on this Logic to get Variant Values

@Yoichi , Thank you In Advance

Hi,

How about the following?

Sample
Sample20250521-3.zip (17.9 KB)

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.