Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ConfiForm: Combine Two Math Operations for one Formula field

Edited

I have a formula field that needs to add the numeric value of the 12 other fields. Not all of the 12 fields will always be filled out. It will be a total amount field summing up 12 months of expenses. The issue is that if there is no entry the field should be rendered as 0; which uses this math operation method:

FORMATNUMBER(ZEROIFEMPTY("[entry.f1]"), "###,###.##")

But I have 12 of these fields and was wondering if this method works:

FORMATNUMBER(ZEROIFEMPTY("[entry.reqoct]","###,###.##", ZEROIFEMPTY("[entry.reqnov]","###,###.##", ZEROIFEMPTY("[entry.reqodec]","###,###.##", ZEROIFEMPTY("[entry.reqojan]","###,###.##", ZEROIFEMPTY("[entry.reqfeb]","###,###.##", ZEROIFEMPTY("[entry.reqmar]","###,###.##", ZEROIFEMPTY("[entry.reqapr]","###,###.##", ZEROIFEMPTY("[entry.reqmay]","###,###.##", ZEROIFEMPTY("[entry.reqjun]","###,###.##", ZEROIFEMPTY("[entry.reqjul]","###,###.##", ZEROIFEMPTY("[entry.reqaug]","###,###.##", ZEROIFEMPTY("[entry.reqsep]","###,###.##")

The second half of the question is combining this above formula with the addition of the monthly numbers:

[entry.reqoct]+[entry.reqnov]+[entry.reqdec]+[entry.reqjan]+[entry.reqfeb]+[entry.reqmar]+[entry.reqapr]+[entry.reqmay]+[entry.reqjun]+[entry.reqjul]+[entry.reqaug]+[entry.reqsep]

All of the monthly fields are set as Numeric Fields and the Total Amount field is a formula. I am not sure how to combine these formulas into one single field or if I need multiple fields.

Any suggestions on this issue would be appreciated!

1 answer

1 accepted

Hi

You need to do something like this (put, just 3 fields in teh example, but hope you understand the idea)

FORMATNUMBER(ZEROIFEMPTY("[entry.reqoct]")+ZEROIFEMPTY("[entry.reqnov]")+ZEROIFEMPTY("[entry.reqdec]"),"###,###.##")

 Alex

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Send an Email or Publish to Confluence - What should you do with your release notes?

Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...

72 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you