Looking for an If formula

Oakey

New Member
Joined
Jan 9, 2017
Messages
49
Office Version
  1. 365
I am looking to use a IF formula but not sure how to write it so it returns the value i want.

I have a list of SKU's that have a location by them, i also have a separate list of locations. I want the If formula to return a value of 1, if the SKU's location appears in my 2nd list.

[TABLE="width: 629"]
<colgroup><col span="2"><col><col><col></colgroup><tbody>[TR]
[TD]ID[/TD]
[TD]SKU[/TD]
[TD]Product[/TD]
[TD]Location Type[/TD]
[TD]Current location[/TD]
[/TR]
[TR]
[TD="align: right"]5379[/TD]
[TD]rxi008[/TD]
[TD]Black Record Album Frame[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P1-AA003-B[/TD]
[/TR]
[TR]
[TD="align: right"]8814[/TD]
[TD]wdd004[/TD]
[TD]Baby Keepsake Box with Drawers[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P3-AA011-A[/TD]
[/TR]
[TR]
[TD="align: right"]16389[/TD]
[TD]ing005[/TD]
[TD]50th Birthday Signature Numbers[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P3-AB013-B[/TD]
[/TR]
[TR]
[TD="align: right"]15997[/TD]
[TD]ing001[/TD]
[TD]18th Birthday Signature Numbers[/TD]
[TD]High Volume Extra Large[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: right"]940[/TD]
[TD]fun017[/TD]
[TD]Inflatable Sumo Suit[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P1-AA027-A[/TD]
[/TR]
[TR]
[TD="align: right"]15998[/TD]
[TD]ing002[/TD]
[TD]21st Birthday Wooden Numbers and Pen[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P2-AA026-C[/TD]
[/TR]
[TR]
[TD="align: right"]18377[/TD]
[TD]wlw006[/TD]
[TD]Igloo Hedgehog Home[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P1-AA003-A[/TD]
[/TR]
[TR]
[TD="align: right"]20036[/TD]
[TD]ing006[/TD]
[TD]60th Birthday Signature Number[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P1-AB041-D[/TD]
[/TR]
[TR]
[TD="align: right"]16388[/TD]
[TD]ing004[/TD]
[TD]40th Birthday Wooden Numbers[/TD]
[TD]High Volume Extra Large[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: right"]15999[/TD]
[TD]ing003[/TD]
[TD]30th Birthday Signature Numbers and Pen[/TD]
[TD]High Volume Extra Large[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: right"]18387[/TD]
[TD]luc126[/TD]
[TD]Scratch Map Deluxe Edition[/TD]
[TD]High Volume Extra Large[/TD]
[TD]P2-AA005-B[/TD]
[/TR]
</tbody>[/TABLE]
 

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.
Hey,

Try something like this:

F2:
=IF(COUNTIF(Input_Your_Locations_List_Range_Here, E2)>0, 1, "")

Where E2 is the first "Current Location" value - change the locations list range to wherever that is to reference it. Then drag formula down the F column (Assuming data is in Cols A-E, change appropriately)
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,115
Members
453,021
Latest member
Justyna P

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