# Original Number in Cell untouched by false IF statement

#### jinc13

##### New Member
I am trying to write a formula that puts a number in cell (A) if a date cell and a text cell have certain info in them. However, if the correct info is NOT in the Date and Text cell, I want the number that is already in Cell (A) to remain untouched.
I am using this formula to pull the info over, but I don't know how to make the "value if false" keep the number in the cell.
=IF(AND(FORM!\$B\$2=DATE(2002,9,3),FORM!\$B\$3="HNL"),FORM!\$B\$6,??????)

Thank you!!!!!

### Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I have some bad news for you. You can't do what you described with a formula. A cell can not have a valued and a formula. You will need to use VBA to accomplish this. Post back a little more detail and I'm sure someone can help you out.

OUCH, that is quite depressing!!
What I am trying to do is create a form that checks to see the date and location, then uses the data entered to populate tables for each date and location. Once that date has been entered though I want the info to be permanently logged in their respective tables.

I.E.
Store 1 on 9-3-02
Product # \$
XYZ 3 \$20
TYW 5 \$35

This info is then logged to Store 1 in the 9-3-02 column

On the form I can then do:
Store 3 on 9-3-02
Product # \$
XYZ 13 \$520
TYW 8 \$315

This will be logged for Store 3 in the 9-3-02 column.

Thanks.
This message was edited by jinc13 on 2002-09-06 14:55

Create a database using the Template Wizard

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q214246

Your database will have fields such as store number, date, item, quantity, amt, etc. There will be one record in the database for each store, date, item combination. Once the database is set up, use DFUNCTIONS (See Help) to create your desired tables.

HTH

Replies
4
Views
578
Replies
1
Views
137
Replies
2
Views
251
Replies
1
Views
117
Replies
17
Views
787

1,216,099
Messages
6,128,822
Members
449,469
Latest member
Kingwi11y

### 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.

### Which adblocker are you using?

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

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