I would greatly appreciate some help tweaking the below formula. The formula works great but is restricted to the specific values within the datasheet ranges. Is it possible to add to the formula or tweak it so that if I input a value that was not contained in the data ranges it would automatically input the data contained in cells: Costings!Z1:Z100
=INDEX(PipeOD!$B$3:$B$810,LOOKUP(9.9E+307,CHOOSE({1,2},MATCH(G6,PipeOD!$A$3:$A$810,0),MATCH(G6,PipeO D!$B$3:$B$810,0),)))
My excel skills suck so any help is appreciated!!!
I am not exactly sure what you mean by:
So if the formula above errors out you want to invoke an entirely different lookup formula?if I input a value that was not contained in the data ranges it would automatically input the data contained in cells: Costings!Z1:Z100
Can you elaborate?
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
Yes that is correct. The above formula references sheet 'PipeOD'. Currently on sheet 'Costings' I can enter either one of two data formats and the formula will search the data contained in sheet 'PipeOD' and enter the value in column B.
E.g. If I enter either 2" or just 50.8mm in sheet 'Costings', another column also in 'Costings' will be populated by 50.8mm automatically. There is a data set in sheet 'PipeOD' that is being referenced, however if I enter a figure that is not contained within that dataset it just displays error. Basically what I want is for the formula to automatically enter the figure contained in cell G6 (the original data entry cell where I put 2" or 50.8mm) in the event of error.
This is a bit confusing, but thanks.
=IFERROR(INDEX(PipeOD!$B$3:$B$810,LOOKUP(9.9E+307,CHOOSE({1,2},MATCH(G6,PipeOD!$A$3:$A$810,0),MATCH( G6,PipeO D!$B$3:$B$810,0),))),G6)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks