+ Reply to Thread
Results 1 to 2 of 2

Calculate a formula based on different columns based on fig in another coloum

  1. #1
    Registered User
    Join Date
    03-07-2021
    Location
    Bristol
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    73

    Calculate a formula based on different columns based on fig in another coloum

    formula =(100*2*CP64)/(CS64*CX64)

    The 2 in the formula could be a 3 or a 4 based on a value in another call it the "No" column which could be between 5-40 and is the very end col on the ssheet if its less than 8 it should be a 2 if its >8,<=16 it should be a 3 if its great than 16 it should be a 4 . How do I do this formula any help greatly appreciated. Tony

    Added file formula in bold
    Attached Files Attached Files
    Last edited by spenctr01; 06-01-2022 at 01:07 AM. Reason: Added file

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,140

    Re: Calculate a formula based on different columns based on fig in another coloum

    how about
    Assuming column B is the NO column
    =(100*IF(B2<8,2,IF(B2<12,3,4))*CP64)/(CS64*CX64)

    will also be a 2 if cell is blank

    Also
    if its 8 , it will be 3
    if its 12, it will be 4

    you may need an < =

    A sample sheet would help here


    Please see the Yellow Banner at the top of the page explaining how to attach a sample spreadsheet

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.

    Here are the instructions, found at the top of the page again
    Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. For a new thread (1st post), scroll to Manage Attachments, otherwise scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

+ 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. [SOLVED] Unable to calculate columns based on cell values using a SUMIF formula
    By peterjames in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-02-2020, 11:44 AM
  2. [SOLVED] If statement based on changes in other coloum
    By dbwoods11 in forum Excel General
    Replies: 14
    Last Post: 04-16-2017, 09:52 AM
  3. [SOLVED] formula to calculate score based on criteria in certain columns
    By suedavies in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2015, 01:14 PM
  4. [SOLVED] Calculate hours based on 2 columns?
    By Ltat42a in forum Excel General
    Replies: 3
    Last Post: 08-05-2014, 09:03 PM
  5. Sorting data in coloums based on another coloum - Code Continuation
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 12:35 PM
  6. Calculate based on two columns
    By ohitefin in forum Excel General
    Replies: 5
    Last Post: 03-25-2012, 10:27 AM
  7. Replies: 4
    Last Post: 12-15-2011, 04:16 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