Formating Existing Formula to Return Blank Insted of 0

jmsutod

New Member
Joined
Jun 28, 2011
Messages
5
I'm starting with the following formula:

=INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)

Is it possible to nest or add something to this so that it returns a blank instead of a zero?

Thanks for your help

The Noob-Jonathan
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I'm starting with the following formula:

=INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)

Is it possible to nest or add something to this so that it returns a blank instead of a zero?

Thanks for your help

The Noob-Jonathan

Not the prettiest way, but:

Code:
=IF(=INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)=0,"",INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)
 
Upvote 0
tc88 said:
Not the prettiest way, but:

Code:
=IF(=INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)=0,"",INDEX(Raw!P:P,ROUNDUP((ROWS(D$2:D24))/9,0)-1+2)
Ya probably want to take that 2nd equal sign out of there.

The perils of copying and pasting! ;)
 
Upvote 0
Worked like a charm, despite its utter lack of sex appeal. Thanks!!

Thanks for the feedback. If someone has a more economical approach feel free to post it, I'm always interested in new ways to attack problems.
 
Upvote 0
Thanks for the feedback. If someone has a more economical approach feel free to post it, I'm always interested in new ways to attack problems.
A possibility...

You could use the original short formula and apply a custom format to hide the display of 0 values.

Format the cells as: [=0]"";General

The cells will still contain numeric zeros, you just won't see them.
 
Upvote 0

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

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