+ Reply to Thread
Results 1 to 4 of 4

IF function to multiply by different numbers

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    IF function to multiply by different numbers

    Hi

    I need to employ a potentially complicated IF function but not sure how to do it so would greatly appreciate some advice.

    I have data in column A where the number in the first row is always between 0 and 4 and then the numbers down the column get slightly smaller with each row (down to 800 rows). I need a formula in column B that multiplies each row in column A by the same number (simple enough so far...) but the number to multiply by changes depending on what the value in cell A1 is, such that there are three categories - <0.1, 0.1-0.5 and >0.5, for example, a value of 0.03 in cell A1 would need to be multiplied by a different number than if the value in A1 was 0.6.

    To further complicate things, there will be occasions where there is no data in column A and if that is the case I want to avoid any numbers being shown in column B, so the =IF('A1="", "",....) function will also have to be incoporated somehow.

    Does anyone know how to do this?

    Many thanks.
    Last edited by t.jones; 10-26-2011 at 09:07 AM.

  2. #2
    Registered User
    Join Date
    07-01-2010
    Location
    High Wycombe
    MS-Off Ver
    Excel 2003
    Posts
    95

    Re: IF function to multiply by different numbers

    It would seem you have to do If statements inside IF statements.

    I have attached an example, i believe the formula i used will work for you but you may need to change some ranges.

    Hope this helps
    Attached Files Attached Files

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: IF function to multiply by different numbers

    Suggest you post all the criteria and conditions so that someone can give you a valid formula. Otherwise, it will be difficult to determine if this can be performed with a nested if statement or you need a choose statement or some VBA (Case Select).

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    10-26-2011
    Location
    Bangor, Wales
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: IF function to multiply by different numbers

    Jamesr571 - thanks so much, that's exactly what I'm after. Well, almost exactly, whatever number the first row is multiplied by is the number that all of the rest of the values in that column must be multiplied by, but I've done that by adding a few $ symbols.

    Thanks so much for your help!

+ 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