Date: prev next · Thread: first prev next last
2022 Archives by date, by thread · List index


You can do this with a set of VLOOKUP() functions. I started by
creating a table of values like so:

Ref Value B C D E F G H I 1 6 10 16 28 38 46 60 80 2 12 20 32 56 76 92
                                             120 160 3 
                                              180 40 4 

The values in column 1 are the values you will find in the B to I
cells. The other values are the values you will want to get based on
the IF() statements. I also named that table RefValues. Now, instead of
using something like:


you can now use something like this:


If you really want to be fancy, you can do this with an array formula
that will process the entire set in one go, like so:


To get this in, you enter the formula without the braces and then
terminate with CTRL-SHIFT-Enter. You may need to replace the
COLUMN(B4:I4) with something different if you want to index correctly
in the RefValue table.

I hope this helps.

Le mardi 11 octobre 2022 à 06:59 -0500, Wade Smart a écrit :
The reason is as the IF statements have grown, changed, copied --
are not working as they should. And this is why Im looking for a
better way. IF!!! I could do this in a db with a better front end -
that would be great but - Im not sure this company will let me do
so for right now - small steps to at least fix all the problems this
sheet is causing.  As for specifically H and I, both of those items
have had - as said in the original post - more possible values added
to over time, and will each have 5 possible values in a few months
the IF statement will be updated again and if someone put the wrong
numbers in or it gets corrupted by the copying - Ill need to go back
and fix that. Its a mess.

Registered Linux User: #480675
Registered Linux Machine: #408606
Linux since June 2005
On Mon, Oct 10, 2022 at 8:22 PM Michael D. Setzer II
<> wrote:

Looked at the spreadsheet and tried some things, but not clear on
your calculation.
Copied formula from first row down to row 16 then modified.
Not clear why H16 being 4 give 30 where previous patterns would
have it give 240?? Same with I16 being 3 gives 40 instead of 240.
Came with this simple formula and it mached result in most cases.
Copied the relative formulas and numbers matched except where
values in H or I was 4 or 3.
Didn't look at vlookup formula.
Did note that on some of the lower rows you have blanks in cells
that resulted in #value, but chaning them to 0 resulted in correct
So, is there a reason why H and I being 4 or 3 give different
values from the pattern. Same thing with shifting to other blocks.
On 10 Oct 2022 at 18:40, Wade Smart wrote:
From:            Wade Smart <>
Date sent:       Mon, 10 Oct 2022 18:40:55 -0500
Subject:         Re: [libreoffice-users] [more] Vlookup, and other
Copies to:
Well, that is odd.
Im uploading again ...

What about this link?
Registered Linux User: #480675
Registered Linux Machine: #408606
Linux since June 2005

On Mon, Oct 10, 2022 at 6:37 PM Steve Edmonds
<> wrote:

At that link I get no download option and a message that the
file is in
your trash.

On 11/10/2022 12:27, Wade Smart wrote:

I thought I was making headway but just got myself into more
of a problem.

The link above is a sample of what Im working with.
In this spread sheet I have hundreds of sections of this that
added to and updated.

If you click on cell BG4 you'll see the IF hell function that
continually update (and fix).
This is created by someone else and the IF statement doesnt
for all the things
that are currently going on but - in general - Section One is
B4 to
I4. The entire colored
space from B3 to I13 is the whole section. Each row is
calculated by
putting in 1 thru 4 under
each item name, though at the moment, and the reason Im
looking to do
this [upgrade] is that
3 and 4 and the coming 5 are not being calculated.

Row 4, B4 to I4 either a 1 or 2 is put in. J4 is the number
of items.
Cell BE4 totals all items from each section.

Cell BG4 - currently the massive and incorrect IF statement -
adds up
each cell and calculates
a number. In this example, F4 is BL SM and is a 1 so BG is
38. Each
row can have a 1 thru 4
(upcoming 5) in each of the available cells.

Looking at Row 7, Cell BG7 is the start of something I
thought would
work but... I got stuck.
And, to be really honest, I got stuck writing this email for
because - I got lost in trying to
explain this HAHA

Looking at the function in BG7, check if its a number first
and then
look up the value of F3 item
1 in Sheet two which is 38. Cell BG8 does the same but shows
quickly growing IF statement
for getting data for 2 cells.

Question: does someone know of an easier way to do this
ongoing IF statements?


To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:
 Michael D. Setzer II - Computer Science Instructor (Retired)
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.