IF a cell contains a certain word then return the value from another cell

broncos347

Active Member
Joined
Feb 16, 2005
Messages
291
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with columns A to K and a large number of rows.

In column K there are a number of words one of which is the word "Correct".

I have set up another spreadsheet to act as an import sheet to record the answers if the word "correct" is found in a cell in Column K. If the word is found I would like the value held in column H to be shown on the second sheet.

I have tried =IF(ISNUMBER(SEARCH('Sheet 1'!L2,'Sheet 2'!B15)),'Sheet 1'!B2) but this returns as FALSE and I'm struggling to find anything that would work for me.

Any help would be appreciated

Sheet 1


Book1
ABCDEFGHIJK
1OverdueContract No.Contract TitleTenantRefDescriptionDate RqdSoftware DateCompleteDate AppliedComment
2Yes907500AUD REAR OF DOWN PLATFORM???907500 - RR001907500 - Rent Review 00125/03/20122012-03-25Correct
Sheet 1


Sheet 2


Book1
ABCDEFGHIJK
1LabelContract.CodeCodeDescriptionUser-defined status.System nameUser-defined status.Business objectAction dateAction applied onContracting partyAction complete?Comment
2907005907005 - RR001907005 - Rent Review 0012013-01-040086
Sheet 2
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
In cell you want the data to be pulled into, the "Second sheet":
=IF(Sheet1!K2="correct",Sheet1!H2,"")
should work.
You'll probably need to change the references etc.
 
Upvote 0
Solution
I didn't think it would be so simple, many thanks for your help.
 
Upvote 0
Pleasure, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,046
Members
449,063
Latest member
ak94

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