LookUp and If Then working together.

EBoudreau

Board Regular
Joined
Aug 21, 2015
Messages
153
I need help getting a formula to work properly in a cell on a different sheet.

Here's what I need to do.
I need the cell to Look in range 'Frac Report'!E8:CQ8 for the entry "LS" or "LSC" and return the value in the matching cell in row 6.
Also if there is no data entered in range 'Frac Report'!E8:CQ8, I want "0" to be returned in the cell.

I've tried this formula:

Code:
=IF('Frac Report'!$E$8:$CQ$8="LS",MATCH("LS",'Frac Report'!$E$8:$CQ$8,6),MATCH("LSC",'Frac Report'!$E$8:$CQ$8,6))

but it yelds #N/A in the cell and I cannot have that.

I know there is a formula that will do this, but I am unable to trouble shoot how to get there from the existing broken formula I have already.

Any help would greatly appreciated!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
It looks like you are using MATCH incorrectly. The last value can only be 1, 0 or -1. INDEX will return the value in row 6 based on the MATCH of row 8. Perhaps this:

=IF('Frac Report'!$E$8:$CQ$8="LS",INDEX('Frac Report'!$E$6:$CQ$6,MATCH("LS",'Frac Report'!$E$8:$CQ$8,0)),INDEX('Frac Report'!$E$6:$CQ$6,MATCH("LSC",'Frac Report'!$E$8:$CQ$8,0)))
 
Upvote 0
I Tried plugging that in and I still get a return of #N/A.

=IF('Frac Report'!$E$8:$CQ$8="LS",INDEX('Frac Report'!$E$6:$CQ$6,,MATCH("LS",'Frac Report'!$E$8:$CQ$8,0)),INDEX('Frac Report'!$E$6:$CQ$6,,MATCH("LSC",'Frac Report'!$E$8:$CQ$8,0)))

Try this one with the extra , in the INDEX functions.
 
Upvote 0
Can you post a samples of the 'Frac Report' sheet and the sheet the formula is on?
 
Upvote 0
Here ya go. Let me know if this link for google drive will for you.

https://drive.google.com/open?id=0B0oQEry29JNjenNKSGhaeGJRTEE

Need to download to be able to open workbook.

Description of needs revisited:
I would like cell 'Stage Times'!I3 to look at 'Frac Report'!E8:CQ8 and fill cell with nothing unless there is "LS" or "LSC" typed into one of the cells in that range.
If there is "LS" or "LSC" typed into one of the cells I want the matching cell contents from row 6 entered into the box.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,604
Messages
6,131,697
Members
449,666
Latest member
Tommy2Tables365

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