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

broncos347

Active Member
Joined
Feb 16, 2005
Messages
293
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

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
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
Pleasure, and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,189
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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