If statement to grab only first occurance from multiple columns and put in single column

wallace23

New Member
Joined
Aug 25, 2011
Messages
15
Hello All,

I have part numbers that are scattered through my spreadsheet. i.e. I have part numbers in cells F3 to J3. i need help with an IF statement that will take the first occurance in place it in A3.

For example, I have a part number in F3 and that is it that is fine. However I have a part number in G4 and H4 and I want the formula to only take the first part number and place it in A4.

This is the formula I have in A3:
=IF(F3="",G3&H3&I3&J3,F3), this works however if there is a part number in G3 & H3 then it takes both part numbers and combines it in A3.

Thanks,

Wallace23
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

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