I am looking for a help with a formula in excel. I have two tabs in my excel
Updates:
One:
My input is in cell F1
When the input is 1, it should check if ID 1 is available in "updates" sheet and return a random "Code" from "updates Sheet" which has ID 1.
IF ID 1 is not available in Updates sheet, it should check in sheet "one" and return a random code from here which contains ID 1.
When Input is ID 3, it should check in sheet 'updates', ID 3 is not available in updates sheet, so it should go to sheet 'one' and return a random code which has ID 3.
Basically it should always check the 'updates' sheet first. only if the input ID is not available, it should go to 'One' Sheet.
My data here is dynamic,for example ID 1 values will keep increasing every month, so when a match is found it should return value. Please help on this.
This is the formula I have used, =INDEX(A:A,LARGE(IF(B:B=F1,ROW(B:B)-ROW(B2)+1),INT(RAND()*COUNTIF(B:B,F1)+1)))
My input(ID) is present in the F1 cell. However, this formula always returns the same code A2. However i need some random code each time.
Updates:
One:
My input is in cell F1
When the input is 1, it should check if ID 1 is available in "updates" sheet and return a random "Code" from "updates Sheet" which has ID 1.
IF ID 1 is not available in Updates sheet, it should check in sheet "one" and return a random code from here which contains ID 1.
When Input is ID 3, it should check in sheet 'updates', ID 3 is not available in updates sheet, so it should go to sheet 'one' and return a random code which has ID 3.
Basically it should always check the 'updates' sheet first. only if the input ID is not available, it should go to 'One' Sheet.
My data here is dynamic,for example ID 1 values will keep increasing every month, so when a match is found it should return value. Please help on this.
This is the formula I have used, =INDEX(A:A,LARGE(IF(B:B=F1,ROW(B:B)-ROW(B2)+1),INT(RAND()*COUNTIF(B:B,F1)+1)))
My input(ID) is present in the F1 cell. However, this formula always returns the same code A2. However i need some random code each time.