+ Reply to Thread
Results 1 to 8 of 8

auto populate

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    24

    auto populate

    How can I auto populate column B with numerical values that are dependent on what the value of the adjacent column C cell is?

    For example… if C2= ‘Submitted’ then B2 needs to equal 100. If C10= ‘Non Possession work uploaded’ then B10 needs to equal 25

    Please see the attached spreadsheet
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Lemice's Avatar
    Join Date
    04-13-2013
    Location
    Somewhere.
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: auto populate

    Hello HUW GARSTON,

    You can use a simple IF if there are only 2 unique values on your C column, for example

    =IF(C2="Submitted",100,25)

    For B2, drag it down to B10.

    100 if Submitted, 25 otherwise. If you have more than 2 unique values on C, you can nest IF within IF / use Lookup, etc
    (copy pasta from Ford)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools

    Regards,
    Lem

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: auto populate

    Use a nested IF statement. In B2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag this down the column as far as needed.
    Replace "neither" with whatever you want to have in column B if C isn't either 'Submitted' or 'Non Possession work uploaded'. If you want it blank, use "".
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Registered User
    Join Date
    06-25-2014
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    24

    Re: auto populate

    thank you, but...

    Submitted = 100,
    Ready for QA = 95,
    Completed on site = 50,
    Possession site works complete = 20,
    Additional possession needed = 10
    Non possession site work complete = 25

    Also, if a cell within columns C is blank and adjacent cell in column B also needed to be blank.

  5. #5
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: auto populate

    Okay, with multiple conditions, although you can expand the IF statement, it starts to get a bit complicated and difficult to work out how to change it to add/delete other conditions later. So for this, I suggest using the following in B2 and drag down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It's an array formula, so enter it using Ctrl-Shift-Enter not just Enter. Excel will add curly brackets {} around the formula (don't enter them yourself).
    If you later need to add/delete/change a condition, you can just amend the bits inside the curly brackets inside the formula.

    Hope that helps (and makes sense!).


    Edit: looking at the drop-down list you have in column C, you seem to have seven conditions, not the six listed in post 4, which doesn't mention the 'Non possession work uploaded' condition. Assuming you want that to give 25, as you said in your first post, the formula would be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Aardigspook; 06-09-2016 at 08:08 AM. Reason: Add missing condition

  6. #6
    Registered User
    Join Date
    06-25-2014
    Location
    Leeds, England
    MS-Off Ver
    2010
    Posts
    24

    Re: auto populate

    Thank you!

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: auto populate

    You're welcome.

  8. #8
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: auto populate

    Huw Hi !

    Sorry only just on.....Try vlookup as in attached sheet

    Might allow for simpler additions by expanding list range

    BAJ
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-29-2014, 05:04 PM
  2. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  3. Auto-populate from other sheets in a master, than auto total duplicates
    By Melyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2013, 01:48 PM
  4. [SOLVED] Auto-populate a name
    By Spartacus31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-24-2013, 05:21 PM
  5. Replies: 2
    Last Post: 07-31-2013, 02:00 PM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. Auto Populate
    By sansonj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-08-2009, 06:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1