Formula Help

Jonathan Marshall

New Member
Joined
Aug 3, 2011
Messages
5
HI

I am trying to work out a formula for the following scenario -:

I have a date cell in a spreadsheet which is populated with the date I receive a payment from a client.

I want to put a formula into a second cell which pulls an amount from third cell cell if the date has not been input. (the date cell is blank)

However if a date is input into the date cell i want the sum in the second cell to show as zero/blank.

Can anyone help?

Thanks

Jon
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
HI

I am trying to work out a formula for the following scenario -:

I have a date cell in a spreadsheet which is populated with the date I receive a payment from a client.

I want to put a formula into a second cell which pulls an amount from third cell cell if the date has not been input. (the date cell is blank)

However if a date is input into the date cell i want the sum in the second cell to show as zero/blank.

Can anyone help?

Thanks

Jon

Assuming Date is in cell A1, and "third cell" is C1, put this formula in B1

Code:
=IF(ISBLANK(A1),C1,"")

Change the cells refs to what you want and if you would prefer a zero instead of blank then change "" to 0

:)
 
Upvote 0
Many thanks for the help but at the moment it appears to be working the opposite way round

ie. it puts in the £amount if the date is in the 2nd cell and takes it out if it is not.

Any ideas?

Jon
 
Upvote 0
Many thanks for the help but at the moment it appears to be working the opposite way round

ie. it puts in the £amount if the date is in the 2nd cell and takes it out if it is not.

Any ideas?

Jon


My bad.. the formula should read

Code:
=IF(ISBLANK(A1),"",C1)

;)
 
Upvote 0
hi

it is still the wrong way round.

it shows 0 in cell B when there is no date in cell A.

and shows the amonut in cell C when a date is put in.

It needs to show an amount in cell B when there is no date in cell A and no amount in cell B when a date is in cell A
 
Upvote 0
hi

it is still the wrong way round.

it shows 0 in cell B when there is no date in cell A.

and shows the amonut in cell C when a date is put in.

It needs to show an amount in cell B when there is no date in cell A and no amount in cell B when a date is in cell A


Hi Johnathan,

The (second) formula I have given you is as follows:

If cell A1 (where you have the date) is blank, then leave B1 blank, otherwise show value from C1. I have tested this and it works fine for me...

Alternatively try this...

Code:
=IF(A1="","",C1)

:)

EDIT - One thing I forgot to ask - is there ever anything else in cell A1 other than the date?
 
Upvote 0
I see the problem

needs to be -;

If cell A1 (where you have the date) is blank, then value/amount from C1 required to be shown in B1

If cell A1 (where you have the date) is ipopulated, then B1 needs to = nil

Jon
 
Upvote 0
I see the problem

needs to be -;

If cell A1 (where you have the date) is blank, then value/amount from C1 required to be shown in B1

If cell A1 (where you have the date) is ipopulated, then B1 needs to = nil

Jon


Ok - then either of these will work fine:

Code:
=IF(ISBLANK(A1),C1,0)
Code:
=IF(A1="",C1,0)

:)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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