Question how to set up an IF statement

scott14

New Member
Joined
Nov 6, 2008
Messages
29
How would you structure this?

Have 12 cols and about 7000 rows.

Every cell in col 1 has a dollar amount.

Every cell in col 2 has a constant, like the number 3 or 7 or other number.

In the other 10 cols, most cells are blank, but several thousand cells scattered randomly each contain the letter "x".


Want to replace every "x" in col 3 to col 12 with the answer of a very simple calculation. That's the $ in col 1 divided by the constant in col 2. If a cell is blank, it must remain blank.


This does NOT work:

=IF(NOT(ISBLANK),dollars/constant,"")
If the cell is not blank, then put here the dollars divided by the constant, else leave the cell blank.

This does NOT work:

=IF(isblank,"",dollars/constant)
If the cell is blank, leave it blank, else put here the dollars divided by the constant.


Thanks.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I would simply go to find and replace (under edit)

find what is x

replace with

=dollars/constant

should work
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,707
Members
452,939
Latest member
WCrawford

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