+ Reply to Thread
Results 1 to 5 of 5

Combinate formula with 2 variable

  1. #1
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Combinate formula with 2 variable

    Hello all,

    I have 2 cells with variables. If, like in this exemple B4 = 0, than I have to do the calculaction with the value in B5. If B5 = 0 than I have to do it with the value of B4
    Actually I use 2 formulas. Is there a way to combinate this in one formula? This means if the value in one of both is 0, than calculate with the value in the other cell

    Thanks for your help

    dekueb
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Combinate formula with 2 variable

    is it as easy as this? may be I'm not clear on the issue

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

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

    Re: Combinate formula with 2 variable

    or
    =(B1*B2-C3)/B6*12*IF(B4=0,B5,B4)
    Samba

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

  4. #4
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Re: Combinate formula with 2 variable

    Quote Originally Posted by Crooza View Post
    is it as easy as this?

    Great joke Crooza. Easy for you, Impossible for me

    Thank you. Works perfect.
    Last edited by dekueb; 12-12-2018 at 03:48 AM.

  5. #5
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Re: Combinate formula with 2 variable

    Quote Originally Posted by samba_ravi View Post
    or
    =(B1*B2-C3)/B6*12*IF(B4=0,B5,B4)
    Work also great
    Thank You

+ 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] Variable in formula
    By Narim79th in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-28-2018, 09:14 AM
  2. Double post
    By *kev* in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2017, 10:03 AM
  3. Changing column variable on a copied formula instead of row variable
    By dsw283 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2014, 04:13 PM
  4. [SOLVED] variable formula
    By max_max in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-09-2014, 05:12 PM
  5. Replies: 4
    Last Post: 07-12-2013, 12:14 PM
  6. Using a variable within a formula
    By Freakazoid in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2011, 07:43 AM
  7. Replies: 1
    Last Post: 10-31-2006, 08:34 AM

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