+ Reply to Thread
Results 1 to 8 of 8

Trying to make data auto-generate into a value in another cell

  1. #1
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Trying to make data auto-generate into a value in another cell

    Hi

    I've created a dropdown menu with different options, I'm trying to have the cell next to this generate a number based on what you select in the dropdown menu

    I've attached an excel I've been trying to do it with, I can get it to work with 2 options however it's proving difficult after that.

    On the example you'll see I've done it with 2, but after that it says #VALUE!

    Any assistance would be much appreciated!

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Trying to make data auto-generate into a value in another cell

    in C3:
    =IF(B3="UP","1",IF(B3="DOWN","2",IF(B3="RIGHT","3",IF(B3="LEFT","4"))))

    "=IF(B3:B4="HERMES","1")" What logic are you trying to apply here?

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,915

    Re: Trying to make data auto-generate into a value in another cell

    try
    =IF(B4="UP",1, IF(B4="DOWN",2, IF(B4="RIGHT",3,4)))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Re: Trying to make data auto-generate into a value in another cell

    Thank you very much!

    I'm trying to total them at the bottom if it's possible.

    For example if we have 2 lefts that = 4 each, this will total 8 at the bottom, is this possible?

    Again, thanks so much for your help.

  5. #5
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Trying to make data auto-generate into a value in another cell

    Either one of these two:

    =SUMPRODUCT(($B$3:$B$6=$B10)*$C$3:$C$6)

    =SUMIF($B$3:$B$6,$B10,$C$3:$C$6)

    Change the ranges as desired.

  6. #6
    Valued Forum Contributor
    Join Date
    05-13-2010
    Location
    Belo Horizonte, Brazil
    MS-Off Ver
    Excel 2003; 2007
    Posts
    441

    Re: Trying to make data auto-generate into a value in another cell

    Overdahill, Good morning.

    The issue is already very well resolved with several solution options.

    I present my 2cts of collaboration here.

    C3 -->
    Please Login or Register  to view this content.
    Copy it down.

    C10 -->
    Please Login or Register  to view this content.
    Copy it down.

    I hope it helps.
    Attached Files Attached Files
    ...If my answer helped you, Please, click on. * Add Reputation (at left)

    Best regards.
    Marc?lio Lob?o

  7. #7
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Re: Trying to make data auto-generate into a value in another cell

    Hi Paul
    Thank you for your help.

    I have done this, however I am receiving a 'FALSE' message when I do not select UP in B3 (using your example above)

    Do you know why? B3 for example has more than UP, DOWN, RIGHT, LEFT in the dropdown list, as there is data in the dropdown list that also applies to another cell. Could this be the issue?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: Trying to make data auto-generate into a value in another cell

    I tried the formula with more options in the Drop down and the SUMIF certainly worked OK.

    Attach a sample workbook (not image).

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

+ 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: 0
    Last Post: 01-23-2018, 08:25 PM
  2. Auto generate data in multiple cells
    By Kirstyamanda in forum Excel General
    Replies: 2
    Last Post: 12-07-2017, 04:40 AM
  3. [SOLVED] Auto generate number in cell
    By SSGDSG in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-03-2016, 07:12 AM
  4. Excel Auto generate sheets with data in a summary VBA
    By markyspicer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2015, 08:13 PM
  5. Is it possible to make a page template auto generate?
    By rtwolff in forum Excel General
    Replies: 0
    Last Post: 01-28-2015, 03:11 PM
  6. Replies: 8
    Last Post: 05-03-2014, 12:49 AM
  7. Auto Generate Data Based on Other Data Entered
    By chelleleigh in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-28-2012, 01:51 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