Building an IF statement??

rogster001

New Member
Joined
Jun 17, 2010
Messages
45
Hi all,

I have a range of cells that at present are populated with a transpose array, that simple pulls data from another worksheet in the same file, so i have the formula:

Code:
{=TRANSPOSE(NEall!C30:BB30)}

This works fine.

However we would like to have the values that are ' 0 ' show as a small text string " n/a " for example.

Can we combine the transpose() into a larger function description that would do something like the following pseudoCode:

Code:
{ TRANSPOSE(NEall!30:BB30)
if(cellVal == 0)
{
     print "n\a";
}
}

I have little idea how to build up formula descriptions in excel, apart from very simple combinations of things, but i am a fluent C++ coder so hopefully will be able to grasp any replies!

Many thanks for any info.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Like Colombo says "Just one more thing" !!

The final piece i need to fit in this number format puzzle is to make " Any minus figure that IS NOT -100 appear in RED " AND "Any positive figure is black"

I have this so far - but i cannot seem to stop the positive figures showing in RED also:

Code:
[=-100]" ";[=0] " ";[Red] 0.00

Any ideas?

Cheers

:
 
Upvote 0
Use conditional formatting, that is your best way. If you're in Excel 2007, you can set multiple conditions.
 
Upvote 0
Use conditional formatting, that is your best way. If you're in Excel 2007, you can set multiple conditions.

Cheers, Its only 2003, so i was stuck at three conditions, but then i happily found that the conditional formatting could be combined with the custom format to 'invisiblise' the -100, and it's nailed...thanks for all the help!
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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