Prompt value in formula

  • Thread starter micro1000 via OfficeKB.com
  • Start date
M

micro1000 via OfficeKB.com

I am using this formula in my company, but the procedure has now changed and
therefor the values ("204";"0"; etc.) has to be changed from time to time.
Can someone show me a script so that the formula prompts for these values
when i click on the cell???

I hope my question is understable and clear! :eek:)

=SUMPRODUCT(('import part'!$A$2:INDEX('import part'!$A$1:$A$50000;TÆL('import
part'!$E$1:$E$50000))="204")*('import part'!$B$2:INDEX('import part'!$B$1:$B
$50000;TÆL('import part'!$E$1:$E$50000))="0")*('import part'!$G$2:INDEX
('import part'!$G$1:$G$50000;TÆL('import part'!$E$1:$E$50000))=8)*('import
part'!$F$2:INDEX('import part'!$F$1:$F$50000;TÆL('import part'!$E$1:$E$50000))
<=2)*('import part'!$E$2:INDEX('import part'!$E$1:$E$50000;TÆL('import part'!
$E$1:$E$50000))<27)*'import part'!$D$2:INDEX('import part'!$D$1:$D$50000;TÆL
('import part'!$E$1:$E$50000)))
 
F

Fred Smith

A good reason not to put this data in the formula.

Use this opportunity to put your values in a cell, and change your formula
accordingly. For example, format a1 as text, enter 204, then change your
formula to:
.....$E$1:$E$50000))=A1...

You would also be better off if you were consistent in using text or
numbers. You have "204", "0", but 8 and 27. Your formula will be easier to
maintain if you used either numbers or text, but not both.

Regards,
Fred.
 
M

micro1000 via OfficeKB.com

Sorry for my late reply, but I have been away from my desk for a while. I
succeded using you suggestion. Thank you very much.

Fred said:
A good reason not to put this data in the formula.

Use this opportunity to put your values in a cell, and change your formula
accordingly. For example, format a1 as text, enter 204, then change your
formula to:
....$E$1:$E$50000))=A1...

You would also be better off if you were consistent in using text or
numbers. You have "204", "0", but 8 and 27. Your formula will be easier to
maintain if you used either numbers or text, but not both.

Regards,
Fred.
I am using this formula in my company, but the procedure has now changed
and
[quoted text clipped - 17 lines]
part'!$D$1:$D$50000;TÆL
('import part'!$E$1:$E$50000)))
 
F

Fred Smith

Glad I could help. Thanks for the feedback.

Regards,
Fred.

micro1000 via OfficeKB.com said:
Sorry for my late reply, but I have been away from my desk for a while. I
succeded using you suggestion. Thank you very much.

Fred said:
A good reason not to put this data in the formula.

Use this opportunity to put your values in a cell, and change your formula
accordingly. For example, format a1 as text, enter 204, then change your
formula to:
....$E$1:$E$50000))=A1...

You would also be better off if you were consistent in using text or
numbers. You have "204", "0", but 8 and 27. Your formula will be easier to
maintain if you used either numbers or text, but not both.

Regards,
Fred.
I am using this formula in my company, but the procedure has now changed
and
[quoted text clipped - 17 lines]
part'!$D$1:$D$50000;TÆL
('import part'!$E$1:$E$50000)))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top