Solved

# How would I fill an xlsx column according to the body of this post?

Posted on 2013-11-26
191 Views
I have a large excel spreadsheet with a column I that contains  three different entrees -
S-1_labs, PRN and Li_labs.   In column J  would like  57 when column I = S-1_Labs, 86 when column I = PRN  and 60 when column I = Li_labs. What equation can I use to avoid entering these numbers into column I manually?
Thanks
0
Question by:PDSWSS
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 6
• 4

LVL 33

Expert Comment

ID: 39677863
Couple of options, as its only 3 values the simplest would be a nested IF statement.

In column J, assume starting row 2, the following formula:

=IF(I2="S-1_labs",57,IF(I2="PRN",86,60))

For a larger set of variables I would create a lookup table.

Thanks
Rob H
0

Author Comment

ID: 39677958
I should have mentioned that there are also blank cells where neither of the three values
are entered.  Your equation will enter "FALSE" in these fields.
Would you be able to send me an equation that will address this 4th possibility?
Thanks
0

Author Comment

ID: 39677998
Second equation to delete all False cells?
0

LVL 33

Accepted Solution

Rob Henson earned 500 total points
ID: 39678007
=IF(I2="S-1_labs",57,IF(I2="PRN",86,IF(I2="Li_Labs",60))
0

LVL 33

Assisted Solution

Rob Henson earned 500 total points
ID: 39678014
Apply autofilter to data and select "FALSE" in column J.

Deleting rows will only delete those visible.

Thanks
Rob H
0

Author Comment

ID: 39678079
Filtering in this situation not optimal.
Would be better to use an equation,  where  cell = false in column J then delete "False"
0

Author Comment

ID: 39678088
Thank you very much for the solution.  FYI should be   )))   at the end not  ))
0

Author Closing Comment

ID: 39678093
Thanks again.
0

LVL 33

Expert Comment

ID: 39678121
Formula can't be used to generate delete but could change to blank rather than false. Put ,"" before closing brackets.
0

Author Comment

ID: 39678132
Thanks again.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst youâ€™ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to dâ€¦
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custoâ€¦
###### Suggested Courses
Course of the Month6 days, 11 hours left to enroll