+ Reply to Thread
Results 1 to 4 of 4

How do I place conditions on which multiplier to use?

  1. #1
    Registered User
    Join Date
    03-24-2008
    Posts
    14

    How do I place conditions on which multiplier to use?

    Hi all,

    I can't figure out which formula to use and would really appreciate some help. I have a basic table with columns A and B, and I want column C to perform the following calculations.

    If the text in A10 is "R", I want to multiply the value in B10 with the value in A1.
    But if A10 = "K", multiply B10 by B1.
    If A10 = "A", multiply B10 by C1.

    What would be the easiest solution?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Try =B10 * CHOOSE(MATCH(A10, {"R","K","A"}, 0), A1, B1, C1)

  3. #3
    Registered User
    Join Date
    03-24-2008
    Posts
    14
    Works great, thanks!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Lucky guess, you're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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