Page 1
Page 1
Started By
Message

Part # Generator in Excel

Posted on 3/10/20 at 3:18 pm
Posted by PawnMaster
Down Yonder
Member since Nov 2014
1652 posts
Posted on 3/10/20 at 3:18 pm
Brilliant folk of The Tech Board,

I need some help with a part # generator spreadsheet I'm working on.

Column A is the part code, Column D is the quantity. I'm trying to make the part code from Column A, and the quantity from Column D, appear together in column F (ex: cell F20) - by just entering the quantity (in Column D). However, I want cells in Column F to stay blank if there is nothing in its corresponding quantity cell.

For example: type "3" into cell D22 and it appearing as "D3" in cell F22.

Any help is appreciated.

Posted by FeeshTacos
BR
Member since Jul 2019
100 posts
Posted on 3/10/20 at 3:29 pm to
Go with =IF(D22 = "","",A22&""&D22)

It says if D22 is blank, output nothing, else combine A22 and D22. Might be a prettier way to do this, but this way works
Posted by FeeshTacos
BR
Member since Jul 2019
100 posts
Posted on 3/10/20 at 3:33 pm to
Probably can take out the extra &"" there. Thats what I get for googling.

=IF(D22 = "","",A22&D22) also works
Posted by PawnMaster
Down Yonder
Member since Nov 2014
1652 posts
Posted on 3/10/20 at 3:50 pm to
quote:

FeeshTacos


That's it! I appreciate it!
Posted by Weekend Warrior79
Member since Aug 2014
19056 posts
Posted on 3/10/20 at 4:20 pm to
quote:

=IF(D22 = "","",A22&D22) also works

I'd actually use a isblank formula, but either way should get the same outcome.

=IF(ISBLANK(D22),"",A22&D22)
Posted by bbap
Baton Rouge, LA
Member since Feb 2006
96490 posts
Posted on 3/10/20 at 7:47 pm to
shite not me. no way im adding isblank if IF can handle it on its own. especially something this simple.
Posted by OceanMan
Member since Mar 2010
21431 posts
Posted on 3/11/20 at 9:30 am to
=If(isblank(D22),“ “, concatenate(A22,D22))

In cell F22; write that formula.
This post was edited on 3/11/20 at 9:35 am
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram