+ Reply to Thread
Results 1 to 5 of 5

Using the IF function with non-numeric digits & with numeric consequences

  1. #1
    Registered User
    Join Date
    10-05-2012
    Location
    Walnut Grove, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Using the IF function with non-numeric digits & with numeric consequences

    If cell a1 is ABC I then want to multiply cell a2 by a3, but if cell a1 is CBA I then want to * cell cell a2 by a4
    Oldmillbill

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using the IF function with non-numeric digits & with numeric consequences

    try
    =A2*IF(A1="ABC", A3, A4)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    10-05-2012
    Location
    Walnut Grove, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using the IF function with non-numeric digits & with numeric consequences

    Close, but still having a problem. In my spreadsheet, column C is either CORN or SBEAN and if it is CORN I want to multiply column (Q*cell K1, but if it is SBEAN I need to multiply column (Q * J1.

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Using the IF function with non-numeric digits & with numeric consequences

    What formula did you try and how did it fail?

  5. #5
    Registered User
    Join Date
    10-05-2012
    Location
    Walnut Grove, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Using the IF function with non-numeric digits & with numeric consequences

    I did get it to work. The problem I was having is that there were some blank spaces following the alpha-letters I was comparing to.
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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