Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have 4 columns that I am concerned with. Say F6 is a fixed number, column
G & H are Yes and No columns. Column I6 could change. I want my formula to see if there is an X in G6. If there is, then I want I6 to equal F6. If the X is in H6 I want a manual figure to be put in. How do I make this formula work? Please help. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Are you looking for a manual input and a formula at the same cell? if you
entre an manual input you will lose the formula, I suggest you to use an auxilar column j for instance to enter the manual data that you want on I if the X is on H column. so the formula on I6 in this case should be: =IF(G6="X",F6,IF(H6="X",J6)) hth -- regards from Brazil Thanks in advance for your feedback. Marcelo "Daleen" escreveu: I have 4 columns that I am concerned with. Say F6 is a fixed number, column G & H are Yes and No columns. Column I6 could change. I want my formula to see if there is an X in G6. If there is, then I want I6 to equal F6. If the X is in H6 I want a manual figure to be put in. How do I make this formula work? Please help. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
A cell may either contain a formula or a value, but not both at the same
time. When your user types in a manual input, the formula is going to be deleted. About the only way you could deal with this is to use one more cell in the process to accept that additional input to be used when there is an X in H6. Lets say this new entry is in column I and your final result now moves to column J. Your formula in J6 might look something like this: =IF(G6="X",F6,I6) We don't need to specifically test for H6 = "X" if we can reasonably expect that if "YES" hasn't been chosen that "NO" must have been. "Daleen" wrote: I have 4 columns that I am concerned with. Say F6 is a fixed number, column G & H are Yes and No columns. Column I6 could change. I want my formula to see if there is an X in G6. If there is, then I want I6 to equal F6. If the X is in H6 I want a manual figure to be put in. How do I make this formula work? Please help. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I had this twist:
=IF(G6="x",F6,IF(AND(H6="x",ISBLANK(J6)),"Enter the manual value in j6",J6)) |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It's not a bad idea at all.
"dan dungan" wrote: I had this twist: =IF(G6="x",F6,IF(AND(H6="x",ISBLANK(J6)),"Enter the manual value in j6",J6)) |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
And another twist..............
You could use event code and not bother with any formulas or an extra column. This seems to do the job. Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error GoTo enditall Application.EnableEvents = False If Target.Cells.Column = 7 Then '7 is G n = Target.Row If UCase(Target.Value) = "X" Then Range("I" & n).Value = Range("F" & n).Value End If End If If Target.Cells.Column = 8 Then '8 is H n = Target.Row If UCase(Target.Value) = "X" Then Range("I" & n).Value = InputBox("enter a number") End If End If enditall: Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Thu, 28 Aug 2008 14:47:27 -0700 (PDT), dan dungan wrote: I had this twist: =IF(G6="x",F6,IF(AND(H6="x",ISBLANK(J6)),"Enter the manual value in j6",J6)) |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks so much. I just needed that last line of tweaking!! I can't tell you
how much this helps. "Marcelo" wrote: Are you looking for a manual input and a formula at the same cell? if you entre an manual input you will lose the formula, I suggest you to use an auxilar column j for instance to enter the manual data that you want on I if the X is on H column. so the formula on I6 in this case should be: =IF(G6="X",F6,IF(H6="X",J6)) hth -- regards from Brazil Thanks in advance for your feedback. Marcelo "Daleen" escreveu: I have 4 columns that I am concerned with. Say F6 is a fixed number, column G & H are Yes and No columns. Column I6 could change. I want my formula to see if there is an X in G6. If there is, then I want I6 to equal F6. If the X is in H6 I want a manual figure to be put in. How do I make this formula work? Please help. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You all are fantastic. I have good knowledge of the basic math functions,
but get lost in the IF and SUMIF. Your help on both answers was greatly appreciate. "JLatham" wrote: A cell may either contain a formula or a value, but not both at the same time. When your user types in a manual input, the formula is going to be deleted. About the only way you could deal with this is to use one more cell in the process to accept that additional input to be used when there is an X in H6. Lets say this new entry is in column I and your final result now moves to column J. Your formula in J6 might look something like this: =IF(G6="X",F6,I6) We don't need to specifically test for H6 = "X" if we can reasonably expect that if "YES" hasn't been chosen that "NO" must have been. "Daleen" wrote: I have 4 columns that I am concerned with. Say F6 is a fixed number, column G & H are Yes and No columns. Column I6 could change. I want my formula to see if there is an X in G6. If there is, then I want I6 to equal F6. If the X is in H6 I want a manual figure to be put in. How do I make this formula work? Please help. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Can't thank you enough for the input. I have two scenerios now and will see
which works best. Thank you for the great help. "dan dungan" wrote: I had this twist: =IF(G6="x",F6,IF(AND(H6="x",ISBLANK(J6)),"Enter the manual value in j6",J6)) |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You gave me another option also. Maybe more than I can handle, but trust me
I am going to try and see which works best for my boss and me. Thanks so much. "Gord Dibben" wrote: And another twist.............. You could use event code and not bother with any formulas or an extra column. This seems to do the job. Private Sub Worksheet_Change(ByVal Target As Excel.Range) On Error GoTo enditall Application.EnableEvents = False If Target.Cells.Column = 7 Then '7 is G n = Target.Row If UCase(Target.Value) = "X" Then Range("I" & n).Value = Range("F" & n).Value End If End If If Target.Cells.Column = 8 Then '8 is H n = Target.Row If UCase(Target.Value) = "X" Then Range("I" & n).Value = InputBox("enter a number") End If End If enditall: Application.EnableEvents = True End Sub Gord Dibben MS Excel MVP On Thu, 28 Aug 2008 14:47:27 -0700 (PDT), dan dungan wrote: I had this twist: =IF(G6="x",F6,IF(AND(H6="x",ISBLANK(J6)),"Enter the manual value in j6",J6)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Formula Not Working | Excel Worksheet Functions | |||
Again for Formula that isn't working... | Excel Worksheet Functions | |||
Formula Sometimes Working Sometimes Not | Excel Discussion (Misc queries) | |||
Formula not working | Excel Discussion (Misc queries) | |||
formula is not working | Excel Worksheet Functions |