Help writing formula

gperez1127

New Member
Joined
Oct 16, 2017
Messages
9
I need this formula =IF(SUM(AP18,BS18,CU18,DW18)>0,SUM(AP18,BS18,CU18,DW18)," ")
to be written like the one below, but using the same line and column references as above.
=IF(AND(ISNUMBER(N18*L18),MEDIAN(N18,L18,0)>0),N18+L18,"")
Help please :confused:
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Well, this is both very simple and virtually impossible! :)

On the simple side, you'd think it's just a matter of substituting, but on the impossible side, the problem is that you have four columns in the first formula (AP, BS, CU, and DW), but only two in the second (L and N). What goes where?

Now, a third possibility is that they replace as a group. In that case, maybe this is what you want.

Rich (BB code):
=IF(AND(ISNUMBER(AP18*BS18*CU18*DW18),MEDIAN(AP18,BS18,CU18,DW18,0)>0),SUM(AP18,BS18,CU18,DW18),"")
 
Upvote 0
Here's another possibility if they replace as a group:

=IFERROR(IF(MIN(AP18, BS18, CU18, DW18)>0,AP18+BS18+CU18+DW18,""),"")

In fact, if you're just using the MEDIAN to make sure that the values are numeric, just

=IFERROR(AP18+BS18+CU18+DW18,"")

using the + sign instead of SUM will cause an error if there's non-numeric data.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,171
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top